aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Module
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Module')
-rw-r--r--lib/Module/KModule.cpp3
-rw-r--r--lib/Module/ModuleUtil.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/Module/KModule.cpp b/lib/Module/KModule.cpp
index 07f3572e..49a1ba69 100644
--- a/lib/Module/KModule.cpp
+++ b/lib/Module/KModule.cpp
@@ -153,7 +153,8 @@ injectStaticConstructorsAndDestructors(Module *m,
Function *mainFn = m->getFunction(entryFunction);
if (!mainFn)
- klee_error("Could not find main() function.");
+ klee_error("Entry function '%s' not found in module.",
+ entryFunction.str().c_str());
if (ctors) {
#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 8)
diff --git a/lib/Module/ModuleUtil.cpp b/lib/Module/ModuleUtil.cpp
index 5ca0a55b..5f9a12b7 100644
--- a/lib/Module/ModuleUtil.cpp
+++ b/lib/Module/ModuleUtil.cpp
@@ -223,7 +223,8 @@ klee::linkModules(std::vector<std::unique_ptr<llvm::Module>> &modules,
// fail if not found
if (!composite) {
- errorMsg = "'" + entryFunction.str() + "' function not found in module.";
+ errorMsg =
+ "Entry function '" + entryFunction.str() + "' not found in module.";
return nullptr;
}