diff options
author | Daniel Dunbar <daniel@zuster.org> | 2014-09-14 16:05:34 -0700 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2014-09-14 16:09:00 -0700 |
commit | c8c950a7e9ebca0dcc8fbf33c9683fe85f06337b (patch) | |
tree | 53df3dcaa5d1871e9e8d22610f6068ca6f3da2c7 /lib/Core | |
parent | c3135ee38276a41f0d89487fada003522fa2df8e (diff) | |
download | klee-c8c950a7e9ebca0dcc8fbf33c9683fe85f06337b.tar.gz |
[LLVM3.5] Update for CallSite.h move into IR/.
Diffstat (limited to 'lib/Core')
-rw-r--r-- | lib/Core/Executor.cpp | 7 | ||||
-rw-r--r-- | lib/Core/Executor.h | 1 | ||||
-rw-r--r-- | lib/Core/ExecutorUtil.cpp | 3 | ||||
-rw-r--r-- | lib/Core/ExternalDispatcher.cpp | 9 | ||||
-rw-r--r-- | lib/Core/Searcher.cpp | 7 | ||||
-rw-r--r-- | lib/Core/StatsTracker.cpp | 6 |
6 files changed, 26 insertions, 7 deletions
diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 545218f9..314e5b82 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -78,12 +78,17 @@ #endif #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/StringExtras.h" -#include "llvm/Support/CallSite.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/Process.h" #include "llvm/Support/raw_ostream.h" +#if LLVM_VERSION_CODE < LLVM_VERSION(3, 5) +#include "llvm/Support/CallSite.h" +#else +#include "llvm/IR/CallSite.h" +#endif + #include <cassert> #include <algorithm> #include <iomanip> diff --git a/lib/Core/Executor.h b/lib/Core/Executor.h index 7d82332c..688dad21 100644 --- a/lib/Core/Executor.h +++ b/lib/Core/Executor.h @@ -20,7 +20,6 @@ #include "klee/Internal/Module/Cell.h" #include "klee/Internal/Module/KInstruction.h" #include "klee/Internal/Module/KModule.h" -#include "llvm/Support/CallSite.h" #include <vector> #include <string> #include <map> diff --git a/lib/Core/ExecutorUtil.cpp b/lib/Core/ExecutorUtil.cpp index f6b3dd5e..56f18e6b 100644 --- a/lib/Core/ExecutorUtil.cpp +++ b/lib/Core/ExecutorUtil.cpp @@ -38,9 +38,6 @@ #endif #endif -#include "llvm/Support/CallSite.h" - - #include <cassert> using namespace klee; diff --git a/lib/Core/ExternalDispatcher.cpp b/lib/Core/ExternalDispatcher.cpp index 4c1e2b86..5f9f8dc6 100644 --- a/lib/Core/ExternalDispatcher.cpp +++ b/lib/Core/ExternalDispatcher.cpp @@ -32,14 +32,21 @@ #endif #include "llvm/ExecutionEngine/JIT.h" #include "llvm/ExecutionEngine/GenericValue.h" -#include "llvm/Support/CallSite.h" #include "llvm/Support/DynamicLibrary.h" #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 + +#if LLVM_VERSION_CODE < LLVM_VERSION(3, 5) +#include "llvm/Support/CallSite.h" +#else +#include "llvm/IR/CallSite.h" +#endif + #include <setjmp.h> #include <signal.h> diff --git a/lib/Core/Searcher.cpp b/lib/Core/Searcher.cpp index 2610f17e..6191acb5 100644 --- a/lib/Core/Searcher.cpp +++ b/lib/Core/Searcher.cpp @@ -34,10 +34,15 @@ #include "llvm/Instructions.h" #include "llvm/Module.h" #endif -#include "llvm/Support/CallSite.h" #include "llvm/Support/CFG.h" #include "llvm/Support/CommandLine.h" +#if LLVM_VERSION_CODE < LLVM_VERSION(3, 5) +#include "llvm/Support/CallSite.h" +#else +#include "llvm/IR/CallSite.h" +#endif + #include <cassert> #include <fstream> #include <climits> diff --git a/lib/Core/StatsTracker.cpp b/lib/Core/StatsTracker.cpp index 54dd0df8..033eaa6b 100644 --- a/lib/Core/StatsTracker.cpp +++ b/lib/Core/StatsTracker.cpp @@ -57,6 +57,12 @@ #include "llvm/Support/Path.h" #include "llvm/Support/FileSystem.h" +#if LLVM_VERSION_CODE < LLVM_VERSION(3, 5) +#include "llvm/Support/CallSite.h" +#else +#include "llvm/IR/CallSite.h" +#endif + #include <fstream> #include <unistd.h> |