From 9408c45009b417e758749b3d95cdfb87dcb68ea9 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sat, 9 May 2009 07:08:47 +0000 Subject: Correct for renaming PaddedSize -> AllocSize in LLVM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71350 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenTypes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/CodeGen/CodeGenTypes.cpp') diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index a3f79d3d59..a9d4615d2a 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -530,7 +530,7 @@ void RecordOrganizer::layoutStructFields(const ASTRecordLayout &RL) { Field != FieldEnd; ++Field) { uint64_t offset = RL.getFieldOffset(curField); const llvm::Type *Ty = CGT.ConvertTypeForMemRecursive(Field->getType()); - uint64_t size = CGT.getTargetData().getTypePaddedSizeInBits(Ty); + uint64_t size = CGT.getTargetData().getTypeAllocSizeInBits(Ty); if (Field->isBitField()) { uint64_t BitFieldSize = @@ -563,7 +563,7 @@ void RecordOrganizer::layoutStructFields(const ASTRecordLayout &RL) { } STy = llvm::StructType::get(LLVMFields, true); - assert(CGT.getTargetData().getTypePaddedSizeInBits(STy) == RL.getSize()); + assert(CGT.getTargetData().getTypeAllocSizeInBits(STy) == RL.getSize()); } /// layoutUnionFields - Do the actual work and lay out all fields. Create @@ -603,5 +603,5 @@ void RecordOrganizer::layoutUnionFields(const ASTRecordLayout &RL) { LLVMFields.push_back(llvm::ArrayType::get(llvm::Type::Int8Ty, RL.getSize() / 8)); STy = llvm::StructType::get(LLVMFields, true); - assert(CGT.getTargetData().getTypePaddedSizeInBits(STy) == RL.getSize()); + assert(CGT.getTargetData().getTypeAllocSizeInBits(STy) == RL.getSize()); } -- cgit v1.2.3-18-g5258