diff options
author | Micah Villmow <villmow@gmail.com> | 2012-10-08 16:21:06 +0000 |
---|---|---|
committer | Micah Villmow <villmow@gmail.com> | 2012-10-08 16:21:06 +0000 |
commit | cb7a4c6c52563589ef7c832bd4c87390b3a3a919 (patch) | |
tree | 1e22135b8938a0c8942fbe9543a0c2e353fb96d7 /lib/Module/IntrinsicCleaner.cpp | |
parent | 215c1587aab5fa94fd805fe8e0b5fbacc51f1c8e (diff) | |
download | klee-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/IntrinsicCleaner.cpp')
-rw-r--r-- | lib/Module/IntrinsicCleaner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Module/IntrinsicCleaner.cpp b/lib/Module/IntrinsicCleaner.cpp index 8b0be35a..41dc5724 100644 --- a/lib/Module/IntrinsicCleaner.cpp +++ b/lib/Module/IntrinsicCleaner.cpp @@ -26,7 +26,7 @@ #include "llvm/Support/IRBuilder.h" #include "llvm/Transforms/Scalar.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" -#include "llvm/Target/TargetData.h" +#include "llvm/Target/DataLayout.h" using namespace llvm; @@ -45,7 +45,7 @@ bool IntrinsicCleanerPass::runOnModule(Module &M) { bool IntrinsicCleanerPass::runOnBasicBlock(BasicBlock &b) { bool dirty = false; - unsigned WordSize = TargetData.getPointerSizeInBits() / 8; + unsigned WordSize = DataLayout.getPointerSizeInBits() / 8; for (BasicBlock::iterator i = b.begin(), ie = b.end(); i != ie;) { IntrinsicInst *ii = dyn_cast<IntrinsicInst>(&*i); // increment now since LowerIntrinsic deletion makes iterator invalid. |