diff options
author | Duncan Sands <baldrick@free.fr> | 2009-05-09 07:08:47 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-05-09 07:08:47 +0000 |
commit | 9408c45009b417e758749b3d95cdfb87dcb68ea9 (patch) | |
tree | eb079d5e63f79f1b2c05b950360ba014640eae2a /lib/CodeGen/CodeGenTypes.cpp | |
parent | 11888a251b682775aad8cd178c7f0620ea062419 (diff) |
Correct for renaming PaddedSize -> AllocSize in
LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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()); } |