OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
020026c
)
Use values we've already computed, update comment.
author
Eric Christopher
<echristo@gmail.com>
Wed, 12 Mar 2014 17:14:46 +0000
(17:14 +0000)
committer
Eric Christopher
<echristo@gmail.com>
Wed, 12 Mar 2014 17:14:46 +0000
(17:14 +0000)
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203681
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
index
fe5ded3
..
581fe22
100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
@@
-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);