diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-09-30 04:52:17 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-30 04:52:17 +0000 |
commit | 423989c4af2a2e436ed5c8b5a826f784367525ce (patch) | |
tree | 9525811ca8e406f151d11878a525e75a7a7fb463 /lib | |
parent | f8e621c4845664a9ad32b5f4b8fe3db2b134dac3 (diff) | |
download | klee-423989c4af2a2e436ed5c8b5a826f784367525ce.tar.gz |
Update for LLVM API changes, patch by nobled, in PR8232.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@115138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Module/Passes.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/Module/Passes.h b/lib/Module/Passes.h index 37a9ac8b..2b57cfa3 100644 --- a/lib/Module/Passes.h +++ b/lib/Module/Passes.h @@ -44,7 +44,11 @@ class RaiseAsmPass : public llvm::ModulePass { bool runOnInstruction(llvm::Module &M, llvm::Instruction *I); public: +#if (LLVM_MAJOR_VERSION == 2 && LLVM_MINOR_VERSION < 8) RaiseAsmPass() : llvm::ModulePass((intptr_t) &ID) {} +#else + RaiseAsmPass() : llvm::ModulePass(ID) {} +#endif virtual bool runOnModule(llvm::Module &M); }; @@ -61,7 +65,11 @@ class IntrinsicCleanerPass : public llvm::ModulePass { public: IntrinsicCleanerPass(const llvm::TargetData &TD, bool LI=true) +#if (LLVM_MAJOR_VERSION == 2 && LLVM_MINOR_VERSION < 8) : llvm::ModulePass((intptr_t) &ID), +#else + : llvm::ModulePass(ID), +#endif TargetData(TD), IL(new llvm::IntrinsicLowering(TD)), LowerIntrinsics(LI) {} @@ -86,7 +94,11 @@ class PhiCleanerPass : public llvm::FunctionPass { static char ID; public: +#if (LLVM_MAJOR_VERSION == 2 && LLVM_MINOR_VERSION < 8) PhiCleanerPass() : llvm::FunctionPass((intptr_t) &ID) {} +#else + PhiCleanerPass() : llvm::FunctionPass(ID) {} +#endif virtual bool runOnFunction(llvm::Function &f); }; @@ -94,7 +106,11 @@ public: class DivCheckPass : public llvm::ModulePass { static char ID; public: +#if (LLVM_MAJOR_VERSION == 2 && LLVM_MINOR_VERSION < 8) DivCheckPass(): ModulePass((intptr_t) &ID) {} +#else + DivCheckPass(): ModulePass(ID) {} +#endif virtual bool runOnModule(llvm::Module &M); }; @@ -104,7 +120,11 @@ public: class LowerSwitchPass : public llvm::FunctionPass { public: static char ID; // Pass identification, replacement for typeid +#if (LLVM_MAJOR_VERSION == 2 && LLVM_MINOR_VERSION < 8) LowerSwitchPass() : FunctionPass((intptr_t) &ID) {} +#else + LowerSwitchPass() : FunctionPass(ID) {} +#endif virtual bool runOnFunction(llvm::Function &F); |