[llvm] r192216 - Debug Info: rename getOriginalTypeSize to getBaseTypeSize.
Manman Ren
manman.ren at gmail.com
Tue Oct 8 11:46:59 PDT 2013
Author: mren
Date: Tue Oct 8 13:46:58 2013
New Revision: 192216
URL: http://llvm.org/viewvc/llvm-project?rev=192216&view=rev
Log:
Debug Info: rename getOriginalTypeSize to getBaseTypeSize.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=192216&r1=192215&r2=192216&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Tue Oct 8 13:46:58 2013
@@ -618,7 +618,7 @@ static bool isUnsignedDIType(DwarfDebug
}
/// If this type is derived from a base type then return base type size.
-static uint64_t getOriginalTypeSize(DwarfDebug *DD, DIDerivedType Ty) {
+static uint64_t getBaseTypeSize(DwarfDebug *DD, DIDerivedType Ty) {
unsigned Tag = Ty.getTag();
if (Tag != dwarf::DW_TAG_member && Tag != dwarf::DW_TAG_typedef &&
@@ -640,7 +640,7 @@ static uint64_t getOriginalTypeSize(Dwar
return Ty.getSizeInBits();
if (BaseType.isDerivedType())
- return getOriginalTypeSize(DD, DIDerivedType(BaseType));
+ return getBaseTypeSize(DD, DIDerivedType(BaseType));
return BaseType.getSizeInBits();
}
@@ -1747,12 +1747,12 @@ DIE *CompileUnit::createMemberDIE(DIDeri
addUInt(MemLocationDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_plus_uconst);
uint64_t Size = DT.getSizeInBits();
- uint64_t FieldSize = getOriginalTypeSize(DD, DT);
+ uint64_t FieldSize = getBaseTypeSize(DD, DT);
if (Size != FieldSize) {
// Handle bitfield.
addUInt(MemberDie, dwarf::DW_AT_byte_size, 0,
- getOriginalTypeSize(DD, DT)>>3);
+ getBaseTypeSize(DD, DT)>>3);
addUInt(MemberDie, dwarf::DW_AT_bit_size, 0, DT.getSizeInBits());
uint64_t Offset = DT.getOffsetInBits();
More information about the llvm-commits
mailing list