Resolve part of a fixme and add a new one.
authorEric Christopher <echristo@apple.com>
Fri, 16 Dec 2011 23:42:42 +0000 (23:42 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 16 Dec 2011 23:42:42 +0000 (23:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146784 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp

index 18a965364ca3fb7eb9edd7fba5776188baf8a902..f43a5bf84213e49a311a89f0334973f4009e75c4 100644 (file)
@@ -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;