diff options
author | MartinNowack <martin.nowack@gmail.com> | 2013-12-06 02:47:22 -0800 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2013-12-06 02:47:22 -0800 |
commit | 02fa9e4d83a04f50cb1ad24b543a2fd5002fa2f3 (patch) | |
tree | 0fea2f6750aa8cc139c4d55260b5cd8a0814bf33 /lib/Core/ExternalDispatcher.cpp | |
parent | 6d19d31eed55e18709c95363beafe8f679d6070c (diff) | |
parent | 10c1cd55ff47d6c55294db3e13c255ae91dea962 (diff) | |
download | klee-02fa9e4d83a04f50cb1ad24b543a2fd5002fa2f3.tar.gz |
Merge pull request #72 from MartinNowack/deprecate_llvm28
Deprecate LLVM 2.8 and lower and remove support for it
Diffstat (limited to 'lib/Core/ExternalDispatcher.cpp')
-rw-r--r-- | lib/Core/ExternalDispatcher.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Core/ExternalDispatcher.cpp b/lib/Core/ExternalDispatcher.cpp index 344811d4..2dc16767 100644 --- a/lib/Core/ExternalDispatcher.cpp +++ b/lib/Core/ExternalDispatcher.cpp @@ -28,21 +28,12 @@ #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" #include "llvm/Instructions.h" -#if LLVM_VERSION_CODE < LLVM_VERSION(2, 7) -#include "llvm/ModuleProvider.h" -#endif -#if LLVM_VERSION_CODE >= LLVM_VERSION(2, 7) #include "llvm/LLVMContext.h" #endif -#endif #include "llvm/ExecutionEngine/JIT.h" #include "llvm/ExecutionEngine/GenericValue.h" #include "llvm/Support/CallSite.h" -#if LLVM_VERSION_CODE < LLVM_VERSION(2, 9) -#include "llvm/System/DynamicLibrary.h" -#else #include "llvm/Support/DynamicLibrary.h" -#endif #include "llvm/Support/raw_ostream.h" #if LLVM_VERSION_CODE < LLVM_VERSION(3, 0) #include "llvm/Target/TargetSelect.h" @@ -97,16 +88,9 @@ void *ExternalDispatcher::resolveSymbol(const std::string &name) { ExternalDispatcher::ExternalDispatcher() { dispatchModule = new Module("ExternalDispatcher", getGlobalContext()); -#if LLVM_VERSION_CODE < LLVM_VERSION(2, 7) - ExistingModuleProvider* MP = new ExistingModuleProvider(dispatchModule); -#endif std::string error; -#if LLVM_VERSION_CODE < LLVM_VERSION(2, 7) - executionEngine = ExecutionEngine::createJIT(MP, &error); -#else executionEngine = ExecutionEngine::createJIT(dispatchModule, &error); -#endif if (!executionEngine) { std::cerr << "unable to make jit: " << error << "\n"; abort(); |