summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-12-16 23:42:42 +0000
committerEric Christopher <echristo@apple.com>2011-12-16 23:42:42 +0000
commitda011dd0e3dd35491b832ca72d4ce84626ecc60c (patch)
tree12845fd8d9a76de5f8246be7a7761ada90941d92 /llvm/lib
parent03faed3eaca4fddcedfe5e5eff69701bfbaf25ab (diff)
downloadbcm5719-llvm-da011dd0e3dd35491b832ca72d4ce84626ecc60c.tar.gz
bcm5719-llvm-da011dd0e3dd35491b832ca72d4ce84626ecc60c.zip
Resolve part of a fixme and add a new one.
llvm-svn: 146784
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 18a965364ca..f43a5bf8421 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud