diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2012-10-08 18:35:54 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2012-10-08 18:35:54 +0000 |
commit | a21b6c7cd1395cc50efd89f7dfa582988fd705c6 (patch) | |
tree | 802c255889ade204184bd9a88b492d078b6d817e /lib/Module | |
parent | 2c8039b3a2abf467c5eefa9fc8d1408766ab877d (diff) | |
download | klee-a21b6c7cd1395cc50efd89f7dfa582988fd705c6.tar.gz |
Fix to previous patch, which would not compile with LLVM 2.9.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@165413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Module')
-rw-r--r-- | lib/Module/Passes.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Module/Passes.h b/lib/Module/Passes.h index 84ab2b13..05061a20 100644 --- a/lib/Module/Passes.h +++ b/lib/Module/Passes.h @@ -68,10 +68,10 @@ public: // variables (via intrinsic lowering). class IntrinsicCleanerPass : public llvm::ModulePass { static char ID; -#if LLVM_VERSION_CODE < LLVM_VERSION(3, 1) - const llvm::TargetData &DataLayout; +#if LLVM_VERSION_CODE <= LLVM_VERSION(3, 1) + const llvm::TargetData &TargetData; #else - const llvm::DataLayout &DL; + const llvm::DataLayout &DataLayout; #endif llvm::IntrinsicLowering *IL; bool LowerIntrinsics; @@ -89,10 +89,10 @@ public: #else : llvm::ModulePass(ID), #endif -#if LLVM_VERSION_CODE < LLVM_VERSION(3, 1) - DataLayout(TD), +#if LLVM_VERSION_CODE <= LLVM_VERSION(3, 1) + TargetData(TD), #else - DL(TD), + DataLayout(TD), #endif IL(new llvm::IntrinsicLowering(TD)), LowerIntrinsics(LI) {} |