diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-12 20:42:31 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-12 20:42:31 +0000 |
commit | 40d4cc09c873518519723244b38cc740ceda2bc8 (patch) | |
tree | 1e5918852817b13d7c146e28654c52d9ffa18422 /lib/Core | |
parent | 1277acf6d1de3208a458d76710a94e63f9d3bf94 (diff) | |
download | klee-40d4cc09c873518519723244b38cc740ceda2bc8.tar.gz |
Update for LLVM API changes.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75427 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core')
-rw-r--r-- | lib/Core/ExternalDispatcher.cpp | 8 | ||||
-rw-r--r-- | lib/Core/ExternalDispatcher.h | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/lib/Core/ExternalDispatcher.cpp b/lib/Core/ExternalDispatcher.cpp index 3486a757..80bff188 100644 --- a/lib/Core/ExternalDispatcher.cpp +++ b/lib/Core/ExternalDispatcher.cpp @@ -52,7 +52,7 @@ void *ExternalDispatcher::resolveSymbol(const std::string &name) { if (str[0] == 1) // asm specifier, skipped ++str; - void *addr = dl_symbols.SearchForAddressOfSymbol(str); + void *addr = sys::DynamicLibrary::SearchForAddressOfSymbol(str); if (addr) return addr; @@ -60,14 +60,14 @@ void *ExternalDispatcher::resolveSymbol(const std::string &name) { // without the underscore. I (DWD) don't know why. if (name[0] == 1 && str[0]=='_') { ++str; - addr = dl_symbols.SearchForAddressOfSymbol(str); + addr = sys::DynamicLibrary::SearchForAddressOfSymbol(str); } return addr; } ExternalDispatcher::ExternalDispatcher() { - dispatchModule = new Module("ExternalDispatcher"); + dispatchModule = new Module("ExternalDispatcher", getGlobalContext()); ExistingModuleProvider* MP = new ExistingModuleProvider(dispatchModule); std::string error; @@ -85,7 +85,7 @@ ExternalDispatcher::ExternalDispatcher() { if (executionEngine) { // Make sure we can resolve symbols in the program as well. The zero arg // to the function tells DynamicLibrary to load the program, not a library. - dl_symbols.LoadLibraryPermanently(0); + sys::DynamicLibrary::LoadLibraryPermanently(0); } #ifdef WINDOWS diff --git a/lib/Core/ExternalDispatcher.h b/lib/Core/ExternalDispatcher.h index fc8f80f4..c173df73 100644 --- a/lib/Core/ExternalDispatcher.h +++ b/lib/Core/ExternalDispatcher.h @@ -11,7 +11,7 @@ #define KLEE_EXTERNALDISPATCHER_H #include <map> -#include "llvm/System/DynamicLibrary.h" +#include <string> namespace llvm { class ExecutionEngine; @@ -28,7 +28,6 @@ namespace klee { dispatchers_ty dispatchers; llvm::Module *dispatchModule; llvm::ExecutionEngine *executionEngine; - llvm::sys::DynamicLibrary dl_symbols; std::map<std::string, void*> preboundFunctions; llvm::Function *createDispatcher(llvm::Function *f, llvm::Instruction *i); |