Add size and location info in DW_TAG_class_type descriptor.
authorDevang Patel <dpatel@apple.com>
Fri, 29 Jan 2010 18:34:58 +0000 (18:34 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 29 Jan 2010 18:34:58 +0000 (18:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94822 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index e7a0867f98efb8a540d183e5072ffbdc79fb1682..12259d524e0b894f82a68d5ddffa92298ccca047 100644 (file)
@@ -966,7 +966,7 @@ void DwarfDebug::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
   if (!Name.empty())
     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) {
     // Add size if non-zero (derived types might be zero-sized.)
     if (Size)