diff options
author | Martin Nowack <m.nowack@imperial.ac.uk> | 2020-01-10 15:43:09 +0000 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2020-01-17 16:36:23 +0000 |
commit | 6eafad4650409223d024a4d0da0a993a02d6e9fd (patch) | |
tree | 3c7aae0ae14b3341d0b8ab91889f5a3bf0b1d2e3 | |
parent | 1f90406ac0cdb8ad04013e163b0fa0be336a36ee (diff) | |
download | klee-6eafad4650409223d024a4d0da0a993a02d6e9fd.tar.gz |
Fixed documentation for command line argument link-llvm-lib
Currently, arbitrary *.bc files or archives containing .bc files (.bca or .a) can be linked using `--link-llvm-lib`. Change documentation of command line argument to make this clear. This feature is useful to keep avoid linking the bitcode libraries with the application as bitcode file in the first place. Fix error message in case library could not be loaded
-rw-r--r-- | tools/klee/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 51ce9530..117c27ca 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -185,10 +185,10 @@ namespace { cl::cat(LinkCat)); cl::list<std::string> - LinkLibraries("link-llvm-lib", - cl::desc("Link the given library before execution. Can be used multiple times."), - cl::value_desc("library file"), - cl::cat(LinkCat)); + LinkLibraries("link-llvm-lib", + cl::desc("Link the given bitcode library before execution, " + "e.g. .bca, .bc, .a. Can be used multiple times."), + cl::value_desc("bitcode library file"), cl::cat(LinkCat)); cl::opt<bool> WithPOSIXRuntime("posix-runtime", @@ -1299,8 +1299,8 @@ int main(int argc, char **argv, char **envp) { for (const auto &library : LinkLibraries) { if (!klee::loadFile(library, mainModule->getContext(), loadedModules, errorMsg)) - klee_error("error loading free standing support '%s': %s", - library.c_str(), errorMsg.c_str()); + klee_error("error loading bitcode library '%s': %s", library.c_str(), + errorMsg.c_str()); } // FIXME: Change me to std types. |