aboutsummaryrefslogblamecommitdiffhomepage
path: root/lib/Module/KInstruction.cpp
blob: c7c841a45afb4a8d27ecbaf2e7bd97756842d5d1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                
                 








                               
 



                                                         
 
//===-- KInstruction.cpp --------------------------------------------------===//
//
//                     The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "klee/Internal/Module/KInstruction.h"
#include <string>

using namespace llvm;
using namespace klee;

/***/

KInstruction::~KInstruction() {
  delete[] operands;
}

std::string KInstruction::getSourceLocation() const {
  if (!info->file.empty())
    return info->file + ":" + std::to_string(info->line);
  else return "[no debug info]";
}