diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-09-30 05:01:33 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-30 05:01:33 +0000 |
commit | c641cc2e5dee453f6098ff5cc85b0e3464ba0886 (patch) | |
tree | 80f7c3d32e3faf4053380a22bbde564665ca99eb /lib/Module/Passes.h | |
parent | e69a71a164be39baef2a4d3e450c733fd4c7868a (diff) | |
download | klee-c641cc2e5dee453f6098ff5cc85b0e3464ba0886.tar.gz |
Spell versioning macros correctly.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@115140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Module/Passes.h')
-rw-r--r-- | lib/Module/Passes.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Module/Passes.h b/lib/Module/Passes.h index 2b57cfa3..c480c6d8 100644 --- a/lib/Module/Passes.h +++ b/lib/Module/Passes.h @@ -44,7 +44,7 @@ class RaiseAsmPass : public llvm::ModulePass { bool runOnInstruction(llvm::Module &M, llvm::Instruction *I); public: -#if (LLVM_MAJOR_VERSION == 2 && LLVM_MINOR_VERSION < 8) +#if (LLVM_VERSION_MAJOR == 2 && LLVM_VERSION_MINOR < 8) RaiseAsmPass() : llvm::ModulePass((intptr_t) &ID) {} #else RaiseAsmPass() : llvm::ModulePass(ID) {} @@ -65,7 +65,7 @@ class IntrinsicCleanerPass : public llvm::ModulePass { public: IntrinsicCleanerPass(const llvm::TargetData &TD, bool LI=true) -#if (LLVM_MAJOR_VERSION == 2 && LLVM_MINOR_VERSION < 8) +#if (LLVM_VERSION_MAJOR == 2 && LLVM_VERSION_MINOR < 8) : llvm::ModulePass((intptr_t) &ID), #else : llvm::ModulePass(ID), @@ -94,7 +94,7 @@ class PhiCleanerPass : public llvm::FunctionPass { static char ID; public: -#if (LLVM_MAJOR_VERSION == 2 && LLVM_MINOR_VERSION < 8) +#if (LLVM_VERSION_MAJOR == 2 && LLVM_VERSION_MINOR < 8) PhiCleanerPass() : llvm::FunctionPass((intptr_t) &ID) {} #else PhiCleanerPass() : llvm::FunctionPass(ID) {} @@ -106,7 +106,7 @@ public: class DivCheckPass : public llvm::ModulePass { static char ID; public: -#if (LLVM_MAJOR_VERSION == 2 && LLVM_MINOR_VERSION < 8) +#if (LLVM_VERSION_MAJOR == 2 && LLVM_VERSION_MINOR < 8) DivCheckPass(): ModulePass((intptr_t) &ID) {} #else DivCheckPass(): ModulePass(ID) {} @@ -120,7 +120,7 @@ public: class LowerSwitchPass : public llvm::FunctionPass { public: static char ID; // Pass identification, replacement for typeid -#if (LLVM_MAJOR_VERSION == 2 && LLVM_MINOR_VERSION < 8) +#if (LLVM_VERSION_MAJOR == 2 && LLVM_VERSION_MINOR < 8) LowerSwitchPass() : FunctionPass((intptr_t) &ID) {} #else LowerSwitchPass() : FunctionPass(ID) {} |