about summary refs log tree commit diff homepage
path: root/lib/Module
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2017-03-02 14:59:28 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2017-03-03 17:30:16 +0000
commit6f20f660ab2ae28ba6ec8e5262a2d1c31e0ab9ed (patch)
treec7677c524bbc25255c49a2c32477626af8cf4de6 /lib/Module
parent4f5ea494986689dd89f97f9a64082527557c71c9 (diff)
downloadklee-6f20f660ab2ae28ba6ec8e5262a2d1c31e0ab9ed.tar.gz
Moved printFileLine() to be part of KInstruction
Diffstat (limited to 'lib/Module')
-rw-r--r--lib/Module/KInstruction.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Module/KInstruction.cpp b/lib/Module/KInstruction.cpp
index 799620c6..a32745b8 100644
--- a/lib/Module/KInstruction.cpp
+++ b/lib/Module/KInstruction.cpp
@@ -17,3 +17,10 @@ using namespace klee;
 KInstruction::~KInstruction() {
   delete[] operands;
 }
+
+void KInstruction::printFileLine(llvm::raw_ostream &debugFile) {
+  if (info->file != "")
+    debugFile << info->file << ":" << info->line;
+  else
+    debugFile << "[no debug info]";
+}