From a21b6c7cd1395cc50efd89f7dfa582988fd705c6 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Mon, 8 Oct 2012 18:35:54 +0000 Subject: 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 --- lib/Module/Passes.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') 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) {} -- cgit 1.4.1