aboutsummaryrefslogtreecommitdiffstats
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
commitdc73c37d2da6bd3f3bbd7abcbdb682fae79893a2 (patch)
tree36b8f46a3ac6590e2ea9fdb1fa8a7f05324da532
parent093fb29d481ecebfbeafcbe9bc5dc82d5ebda244 (diff)
downloadexternal_llvm-dc73c37d2da6bd3f3bbd7abcbdb682fae79893a2.zip
external_llvm-dc73c37d2da6bd3f3bbd7abcbdb682fae79893a2.tar.gz
external_llvm-dc73c37d2da6bd3f3bbd7abcbdb682fae79893a2.tar.bz2
Add size and location info in DW_TAG_class_type descriptor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94822 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index e7a0867..12259d5 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/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)