diff options
| author | Micah Villmow <villmow@gmail.com> | 2012-10-08 16:38:25 +0000 |
|---|---|---|
| committer | Micah Villmow <villmow@gmail.com> | 2012-10-08 16:38:25 +0000 |
| commit | cdfe20b97f55f4f493ebd6f15932780ae0789fe4 (patch) | |
| tree | 8e7f0bdb8bdc055ac83804ed3853eb5d33c08f3c /llvm/lib/Transforms/Utils/AddrModeMatcher.cpp | |
| parent | 6bf5825b3da245596605f3918397ffc18c8d1a49 (diff) | |
| download | bcm5719-llvm-cdfe20b97f55f4f493ebd6f15932780ae0789fe4.tar.gz bcm5719-llvm-cdfe20b97f55f4f493ebd6f15932780ae0789fe4.zip | |
Move TargetData to DataLayout.
llvm-svn: 165402
Diffstat (limited to 'llvm/lib/Transforms/Utils/AddrModeMatcher.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/AddrModeMatcher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp b/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp index 0f9dfddf574..6815e411b42 100644 --- a/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp +++ b/llvm/lib/Transforms/Utils/AddrModeMatcher.cpp @@ -16,7 +16,7 @@ #include "llvm/GlobalValue.h" #include "llvm/Instruction.h" #include "llvm/Assembly/Writer.h" -#include "llvm/Target/TargetData.h" +#include "llvm/DataLayout.h" #include "llvm/Support/Debug.h" #include "llvm/Support/GetElementPtrTypeIterator.h" #include "llvm/Support/PatternMatch.h" @@ -221,7 +221,7 @@ bool AddressingModeMatcher::MatchOperationAddr(User *AddrInst, unsigned Opcode, unsigned VariableScale = 0; int64_t ConstantOffset = 0; - const TargetData *TD = TLI.getTargetData(); + const DataLayout *TD = TLI.getDataLayout(); gep_type_iterator GTI = gep_type_begin(AddrInst); for (unsigned i = 1, e = AddrInst->getNumOperands(); i != e; ++i, ++GTI) { if (StructType *STy = dyn_cast<StructType>(*GTI)) { |

