mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 12:08:33 +00:00
Use values we've already computed, update comment.
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203681 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
020026c5f6
commit
097963a442
@ -1891,10 +1891,9 @@ void DwarfUnit::constructMemberDIE(DIE &Buffer, DIDerivedType DT) {
|
||||
uint64_t OffsetInBytes;
|
||||
|
||||
if (Size != FieldSize) {
|
||||
// Handle bitfield.
|
||||
addUInt(MemberDie, dwarf::DW_AT_byte_size, None,
|
||||
getBaseTypeSize(DD, DT) >> 3);
|
||||
addUInt(MemberDie, dwarf::DW_AT_bit_size, None, DT.getSizeInBits());
|
||||
// Handle bitfield, assume bytes are 8 bits.
|
||||
addUInt(MemberDie, dwarf::DW_AT_byte_size, None, FieldSize/8);
|
||||
addUInt(MemberDie, dwarf::DW_AT_bit_size, None, Size);
|
||||
|
||||
uint64_t Offset = DT.getOffsetInBits();
|
||||
uint64_t AlignMask = ~(DT.getAlignInBits() - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user