Add size and location info in DW_TAG_class_type descriptor.

llvm-svn: 94822
This commit is contained in:
Devang Patel 2010-01-29 18:34:58 +00:00
parent c91ba40a59
commit 022d4a7fc0

View File

@ -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)