about summary refs log tree commit diff homepage
path: root/lib/Core/ExecutorUtil.cpp
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2018-05-17 11:53:08 +0100
committerMartinNowack <martin.nowack@gmail.com>2018-05-22 11:08:24 +0100
commitb737b76ce25ded750fa0d10b10414566c0856810 (patch)
tree03fd080e27c8966ab508c44a86d3db6a8bcd4f8d /lib/Core/ExecutorUtil.cpp
parentcf33f833c9c8dd28b44a3177ef0b759e0f46cb86 (diff)
downloadklee-b737b76ce25ded750fa0d10b10414566c0856810.tar.gz
Renamed printFileLine to getSourceLocation (as suggested by @delcypher) to reflect the fact that it simply returns a string
Diffstat (limited to 'lib/Core/ExecutorUtil.cpp')
-rw-r--r--lib/Core/ExecutorUtil.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Core/ExecutorUtil.cpp b/lib/Core/ExecutorUtil.cpp
index 355f6f78..63967ae5 100644
--- a/lib/Core/ExecutorUtil.cpp
+++ b/lib/Core/ExecutorUtil.cpp
@@ -128,7 +128,7 @@ namespace klee {
         std::string msg("Cannot handle constant ");
         llvm::raw_string_ostream os(msg);
         os << "'" << *c << "' at location "
-           << (ki ? ki->printFileLine().c_str() : "[unknown]");
+           << (ki ? ki->getSourceLocation().c_str() : "[unknown]");
         klee_error("%s", os.str().c_str());
       }
     }
@@ -154,7 +154,7 @@ namespace klee {
       if (op2->getLimitedValue() == 0) {
         std::string msg("Division/modulo by zero during constant folding at location ");
         llvm::raw_string_ostream os(msg);
-        os << (ki ? ki->printFileLine().c_str() : "[unknown]");
+        os << (ki ? ki->getSourceLocation().c_str() : "[unknown]");
         klee_error("%s", os.str().c_str());
       }
       break;
@@ -164,7 +164,7 @@ namespace klee {
       if (op2->getLimitedValue() >= op1->getWidth()) {
         std::string msg("Overshift during constant folding at location ");
         llvm::raw_string_ostream os(msg);
-        os << (ki ? ki->printFileLine().c_str() : "[unknown]");
+        os << (ki ? ki->getSourceLocation().c_str() : "[unknown]");
         klee_error("%s", os.str().c_str());
       }
     }
@@ -175,7 +175,7 @@ namespace klee {
     switch (ce->getOpcode()) {
     default :
       os << "'" << *ce << "' at location "
-         << (ki ? ki->printFileLine().c_str() : "[unknown]");
+         << (ki ? ki->getSourceLocation().c_str() : "[unknown]");
       klee_error("%s", os.str().c_str());
 
     case Instruction::Trunc: