summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-01-29 18:34:58 +0000
committerDevang Patel <dpatel@apple.com>2010-01-29 18:34:58 +0000
commitaedd6f5b3325ef185647e0e565abd22c59b4e7c7 (patch)
treed507e248a9233386476ff0382fc5acce0dec0537
parent156b11368a83791f9b2dc1f676c2b6640684c205 (diff)
downloadbcm5719-llvm-aedd6f5b3325ef185647e0e565abd22c59b4e7c7.tar.gz
bcm5719-llvm-aedd6f5b3325ef185647e0e565abd22c59b4e7c7.zip
Add size and location info in DW_TAG_class_type descriptor.
llvm-svn: 94822
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index e7a0867f98e..12259d524e0 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -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)
OpenPOWER on IntegriCloud