diff options
Diffstat (limited to 'lib')
-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) {} |