diff options
author | Andrea Mattavelli <andreamattavelli@users.noreply.github.com> | 2017-03-03 18:34:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-03 18:34:19 +0000 |
commit | 2b053eeded2688c7bb17be191b45c11080b44ca7 (patch) | |
tree | 882ca015f3b307f31ae34f66e3f72f7b0423e39b /lib/Module | |
parent | 4b199e1726ac45227f62ae0365063236a9a10033 (diff) | |
parent | 6f20f660ab2ae28ba6ec8e5262a2d1c31e0ab9ed (diff) | |
download | klee-2b053eeded2688c7bb17be191b45c11080b44ca7.tar.gz |
Merge pull request #613 from ccadar/minor2
Moved printFileLine() to be part of KInstruction
Diffstat (limited to 'lib/Module')
-rw-r--r-- | lib/Module/KInstruction.cpp | 7 |
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]"; +} |