mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 20:30:50 +00:00
Add size and location info in DW_TAG_class_type descriptor.
llvm-svn: 94822
This commit is contained in:
parent
c91ba40a59
commit
022d4a7fc0
@ -966,7 +966,7 @@ void DwarfDebug::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
|
|||||||
if (!Name.empty())
|
if (!Name.empty())
|
||||||
addString(&Buffer, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name);
|
addString(&Buffer, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name);
|
||||||
|
|
||||||
if (Tag == dwarf::DW_TAG_enumeration_type ||
|
if (Tag == dwarf::DW_TAG_enumeration_type || Tag == dwarf::DW_TAG_class_type ||
|
||||||
Tag == dwarf::DW_TAG_structure_type || Tag == dwarf::DW_TAG_union_type) {
|
Tag == dwarf::DW_TAG_structure_type || Tag == dwarf::DW_TAG_union_type) {
|
||||||
// Add size if non-zero (derived types might be zero-sized.)
|
// Add size if non-zero (derived types might be zero-sized.)
|
||||||
if (Size)
|
if (Size)
|
||||||
|
Loading…
Reference in New Issue
Block a user