diff options
author | Eric Christopher <echristo@apple.com> | 2011-12-16 23:42:42 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-12-16 23:42:42 +0000 |
commit | 1a8e8869cafa16d94afcb6f73bc3e0f2f72f70f1 (patch) | |
tree | 4bf683af969fdfb510737ccf55a7d08bb2ec061d /lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 44625f91c57638d178fcb464681ae5a293a1f100 (diff) |
Resolve part of a fixme and add a new one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 18a965364c..f43a5bf842 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -838,8 +838,11 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) { addUInt(&Buffer, dwarf::DW_AT_APPLE_objc_complete_type, dwarf::DW_FORM_flag, 1); - // FIXME: a structure type can have template params too. - if (Tag == dwarf::DW_TAG_class_type) + // Add template parameters to a class, structure or union types. + // FIXME: The support isn't in the metadata for this yet. + if (Tag == dwarf::DW_TAG_class_type || + Tag == dwarf::DW_TAG_structure_type || + Tag == dwarf::DW_TAG_union_type) addTemplateParams(Buffer, CTy.getTemplateParams()); break; |