about summary refs log tree commit diff homepage
path: root/lib/Module/Passes.h
diff options
context:
space:
mode:
authorMicah Villmow <villmow@gmail.com>2012-10-08 16:21:06 +0000
committerMicah Villmow <villmow@gmail.com>2012-10-08 16:21:06 +0000
commitcb7a4c6c52563589ef7c832bd4c87390b3a3a919 (patch)
tree1e22135b8938a0c8942fbe9543a0c2e353fb96d7 /lib/Module/Passes.h
parent215c1587aab5fa94fd805fe8e0b5fbacc51f1c8e (diff)
downloadklee-cb7a4c6c52563589ef7c832bd4c87390b3a3a919.tar.gz
Move TargetData to DataLayout.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@165394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Module/Passes.h')
-rw-r--r--lib/Module/Passes.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Module/Passes.h b/lib/Module/Passes.h
index 6257da8f..721a61ea 100644
--- a/lib/Module/Passes.h
+++ b/lib/Module/Passes.h
@@ -22,7 +22,7 @@ namespace llvm {
   class Function;
   class Instruction;
   class Module;
-  class TargetData;
+  class DataLayout;
   class TargetLowering;
   class Type;
 }
@@ -64,20 +64,20 @@ public:
   // variables (via intrinsic lowering).
 class IntrinsicCleanerPass : public llvm::ModulePass {
   static char ID;
-  const llvm::TargetData &TargetData;
+  const llvm::DataLayout &DataLayout;
   llvm::IntrinsicLowering *IL;
   bool LowerIntrinsics;
 
   bool runOnBasicBlock(llvm::BasicBlock &b);
 public:
-  IntrinsicCleanerPass(const llvm::TargetData &TD,
+  IntrinsicCleanerPass(const llvm::DataLayout &TD,
                        bool LI=true)
 #if LLVM_VERSION_CODE < LLVM_VERSION(2, 8)
     : llvm::ModulePass((intptr_t) &ID),
 #else
     : llvm::ModulePass(ID),
 #endif
-      TargetData(TD),
+      DataLayout(TD),
       IL(new llvm::IntrinsicLowering(TD)),
       LowerIntrinsics(LI) {}
   ~IntrinsicCleanerPass() { delete IL; }