diff options
author | Eli Bendersky <eliben@google.com> | 2013-04-16 15:41:18 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2013-04-16 15:41:18 +0000 |
commit | 41913c7711771ae6a535a556e0ce28e64fa46dc7 (patch) | |
tree | bdcd90c9f33d9f1acd0efa08b003497425dfd49b /llvm/lib/IR | |
parent | 8997dac30afea00f6b99e438c6fb235a1cfedd6a (diff) | |
download | bcm5719-llvm-41913c7711771ae6a535a556e0ce28e64fa46dc7.tar.gz bcm5719-llvm-41913c7711771ae6a535a556e0ce28e64fa46dc7.zip |
Cleanup naming: DataLayout s/TD/DL/
llvm-svn: 179601
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r-- | llvm/lib/IR/DataLayout.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp index ecd5216f20a..5658f561144 100644 --- a/llvm/lib/IR/DataLayout.cpp +++ b/llvm/lib/IR/DataLayout.cpp @@ -41,7 +41,7 @@ char DataLayout::ID = 0; // Support for StructLayout //===----------------------------------------------------------------------===// -StructLayout::StructLayout(StructType *ST, const DataLayout &TD) { +StructLayout::StructLayout(StructType *ST, const DataLayout &DL) { assert(!ST->isOpaque() && "Cannot get layout of opaque structs"); StructAlignment = 0; StructSize = 0; @@ -50,7 +50,7 @@ StructLayout::StructLayout(StructType *ST, const DataLayout &TD) { // Loop over each of the elements, placing them in memory. for (unsigned i = 0, e = NumElements; i != e; ++i) { Type *Ty = ST->getElementType(i); - unsigned TyAlign = ST->isPacked() ? 1 : TD.getABITypeAlignment(Ty); + unsigned TyAlign = ST->isPacked() ? 1 : DL.getABITypeAlignment(Ty); // Add padding if necessary to align the data element properly. if ((StructSize & (TyAlign-1)) != 0) @@ -60,7 +60,7 @@ StructLayout::StructLayout(StructType *ST, const DataLayout &TD) { StructAlignment = std::max(TyAlign, StructAlignment); MemberOffsets[i] = StructSize; - StructSize += TD.getTypeAllocSize(Ty); // Consume space for this data item + StructSize += DL.getTypeAllocSize(Ty); // Consume space for this data item } // Empty structures have alignment of 1 byte. |