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/Module/ModuleUtil.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/Module/ModuleUtil.cpp')
-rw-r--r-- | lib/Module/ModuleUtil.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/Module/ModuleUtil.cpp b/lib/Module/ModuleUtil.cpp index 43eef0b7..fcdfa35a 100644 --- a/lib/Module/ModuleUtil.cpp +++ b/lib/Module/ModuleUtil.cpp @@ -27,21 +27,13 @@ #endif #include "llvm/Linker.h" -#if LLVM_VERSION_CODE < LLVM_VERSION(2, 8) -#include "llvm/Assembly/AsmAnnotationWriter.h" -#else #include "llvm/Assembly/AssemblyAnnotationWriter.h" -#endif #include "llvm/Support/CFG.h" #include "llvm/Support/CallSite.h" #include "llvm/Support/InstIterator.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Analysis/ValueTracking.h" -#if LLVM_VERSION_CODE < LLVM_VERSION(2, 9) -#include "llvm/System/Path.h" -#else #include "llvm/Support/Path.h" -#endif #include <map> #include <iostream> @@ -99,13 +91,8 @@ Function *klee::getDirectCallTarget(CallSite cs) { } static bool valueIsOnlyCalled(const Value *v) { -#if LLVM_VERSION_CODE < LLVM_VERSION(2, 8) - for (Value::use_const_iterator it = v->use_begin(), ie = v->use_end(); - it != ie; ++it) { -#else for (Value::const_use_iterator it = v->use_begin(), ie = v->use_end(); it != ie; ++it) { -#endif if (const Instruction *instr = dyn_cast<Instruction>(*it)) { if (instr->getOpcode()==0) continue; // XXX function numbering inst if (!isa<CallInst>(instr) && !isa<InvokeInst>(instr)) return false; |