aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/Module/Passes.h
diff options
context:
space:
mode:
authorMartinNowack <martin.nowack@gmail.com>2013-12-06 02:47:22 -0800
committerMartinNowack <martin.nowack@gmail.com>2013-12-06 02:47:22 -0800
commit02fa9e4d83a04f50cb1ad24b543a2fd5002fa2f3 (patch)
tree0fea2f6750aa8cc139c4d55260b5cd8a0814bf33 /lib/Module/Passes.h
parent6d19d31eed55e18709c95363beafe8f679d6070c (diff)
parent10c1cd55ff47d6c55294db3e13c255ae91dea962 (diff)
downloadklee-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/Passes.h')
-rw-r--r--lib/Module/Passes.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/Module/Passes.h b/lib/Module/Passes.h
index c6e09f0f..accb64d0 100644
--- a/lib/Module/Passes.h
+++ b/lib/Module/Passes.h
@@ -44,9 +44,7 @@ namespace klee {
class RaiseAsmPass : public llvm::ModulePass {
static char ID;
-#if LLVM_VERSION_CODE >= LLVM_VERSION(2, 9)
const llvm::TargetLowering *TLI;
-#endif
llvm::Function *getIntrinsic(llvm::Module &M,
unsigned IID,
@@ -61,11 +59,7 @@ class RaiseAsmPass : public llvm::ModulePass {
bool runOnInstruction(llvm::Module &M, llvm::Instruction *I);
public:
-#if LLVM_VERSION_CODE < LLVM_VERSION(2, 8)
- RaiseAsmPass() : llvm::ModulePass((intptr_t) &ID) {}
-#else
RaiseAsmPass() : llvm::ModulePass(ID), TLI(0) {}
-#endif
virtual bool runOnModule(llvm::Module &M);
};
@@ -90,11 +84,7 @@ public:
IntrinsicCleanerPass(const llvm::DataLayout &TD,
#endif
bool LI=true)
-#if LLVM_VERSION_CODE < LLVM_VERSION(2, 8)
- : llvm::ModulePass((intptr_t) &ID),
-#else
: llvm::ModulePass(ID),
-#endif
#if LLVM_VERSION_CODE <= LLVM_VERSION(3, 1)
TargetData(TD),
#else
@@ -123,11 +113,7 @@ class PhiCleanerPass : public llvm::FunctionPass {
static char ID;
public:
-#if LLVM_VERSION_CODE < LLVM_VERSION(2, 8)
- PhiCleanerPass() : llvm::FunctionPass((intptr_t) &ID) {}
-#else
PhiCleanerPass() : llvm::FunctionPass(ID) {}
-#endif
virtual bool runOnFunction(llvm::Function &f);
};
@@ -135,11 +121,7 @@ public:
class DivCheckPass : public llvm::ModulePass {
static char ID;
public:
-#if LLVM_VERSION_CODE < LLVM_VERSION(2, 8)
- DivCheckPass(): ModulePass((intptr_t) &ID) {}
-#else
DivCheckPass(): ModulePass(ID) {}
-#endif
virtual bool runOnModule(llvm::Module &M);
};
@@ -160,11 +142,7 @@ public:
class OvershiftCheckPass : public llvm::ModulePass {
static char ID;
public:
-#if LLVM_VERSION_CODE < LLVM_VERSION(2, 8)
- OvershiftCheckPass(): ModulePass((intptr_t) &ID) {}
-#else
OvershiftCheckPass(): ModulePass(ID) {}
-#endif
virtual bool runOnModule(llvm::Module &M);
};
@@ -174,11 +152,7 @@ public:
class LowerSwitchPass : public llvm::FunctionPass {
public:
static char ID; // Pass identification, replacement for typeid
-#if LLVM_VERSION_CODE < LLVM_VERSION(2, 8)
- LowerSwitchPass() : FunctionPass((intptr_t) &ID) {}
-#else
LowerSwitchPass() : FunctionPass(ID) {}
-#endif
virtual bool runOnFunction(llvm::Function &F);