diff options
-rw-r--r-- | lib/Core/ExternalDispatcher.cpp | 4 | ||||
-rw-r--r-- | lib/Module/RaiseAsm.cpp | 4 | ||||
-rw-r--r-- | tools/klee/main.cpp | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/lib/Core/ExternalDispatcher.cpp b/lib/Core/ExternalDispatcher.cpp index c876685e..7da0c350 100644 --- a/lib/Core/ExternalDispatcher.cpp +++ b/lib/Core/ExternalDispatcher.cpp @@ -36,7 +36,11 @@ #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" +#else +#include "llvm/Support/TargetSelect.h" +#endif #include <setjmp.h> #include <signal.h> #include <iostream> diff --git a/lib/Module/RaiseAsm.cpp b/lib/Module/RaiseAsm.cpp index 6f6a5c90..60bf28a1 100644 --- a/lib/Module/RaiseAsm.cpp +++ b/lib/Module/RaiseAsm.cpp @@ -18,7 +18,11 @@ #include "llvm/Support/raw_ostream.h" #include "llvm/Support/Host.h" #include "llvm/Target/TargetLowering.h" +#if LLVM_VERSION_CODE < LLVM_VERSION(3, 0) #include "llvm/Target/TargetRegistry.h" +#else +#include "llvm/Support/TargetRegistry.h" +#endif #endif using namespace llvm; diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 16cc6283..a5b8d046 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -36,7 +36,11 @@ #undef PACKAGE_STRING #undef PACKAGE_TARNAME #undef PACKAGE_VERSION +#if LLVM_VERSION_CODE < LLVM_VERSION(3, 0) #include "llvm/Target/TargetSelect.h" +#else +#include "llvm/Support/TargetSelect.h" +#endif #if LLVM_VERSION_CODE < LLVM_VERSION(2, 9) #include "llvm/System/Signals.h" #else |