blob: d1e6c47002b2be9a9ddf7fd90f792e37a6ab95d7 (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 | //===-- 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 "llvm/Support/raw_ostream.h"
#include <string>
using namespace llvm;
using namespace klee;
/***/
KInstruction::~KInstruction() {
  delete[] operands;
}
void KInstruction::printFileLine(llvm::raw_ostream &debugFile) const {
  if (info->file != "")
    debugFile << info->file << ":" << info->line;
  else debugFile << "[no debug info]";
}
std::string KInstruction::printFileLine() const {
  std::string str;
  llvm::raw_string_ostream oss(str);
  printFileLine(oss);
  return oss.str();
}
 |