Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.88 -> 1.89 --- Log message: encapsulate the rest of the StructLayout members. --- Diffs of the changes: (+4 -4) TargetData.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) Index: llvm/lib/Target/TargetData.cpp diff -u llvm/lib/Target/TargetData.cpp:1.88 llvm/lib/Target/TargetData.cpp:1.89 --- llvm/lib/Target/TargetData.cpp:1.88 Sat Feb 10 13:55:17 2007 +++ llvm/lib/Target/TargetData.cpp Sat Feb 10 13:59:22 2007 @@ -325,7 +325,7 @@ case Type::StructTyID: { // Get the layout annotation... which is lazily created on demand. const StructLayout *Layout = TD->getStructLayout(cast<StructType>(Ty)); - Size = Layout->StructSize; Alignment = Layout->StructAlignment; + Size = Layout->getSizeInBytes(); Alignment = Layout->getAlignment(); return; } @@ -387,9 +387,9 @@ // Get the layout annotation... which is lazily created on demand; // enforce minimum aggregate alignment. const StructLayout *Layout = TD->getStructLayout(cast<StructType>(Ty)); - Size = Layout->StructSize; - Alignment = std::max(Layout->StructAlignment, - (const unsigned int) TD->getAggMinPrefAlignment()); + Size = Layout->getSizeInBytes(); + Alignment = std::max(Layout->getAlignment(), + (const unsigned int)TD->getAggMinPrefAlignment()); return; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits