summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-05-23 00:09:20 +0000
committerEric Christopher <echristo@apple.com>2012-05-23 00:09:20 +0000
commitc49643586b90d8c796851e28616a48bb48c9a0cc (patch)
tree658130f4c2a32ec682e627efed678b9dd7c87bf1 /llvm/lib/CodeGen/AsmPrinter
parentebffd2e7fd08e63e345bdf27a32938de79783240 (diff)
downloadbcm5719-llvm-c49643586b90d8c796851e28616a48bb48c9a0cc.tar.gz
bcm5719-llvm-c49643586b90d8c796851e28616a48bb48c9a0cc.zip
Add support for C++11 enum classes in llvm.
Part of rdar://11496790 llvm-svn: 157303
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 615b46f0494..a5d9b12034a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -776,6 +776,11 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
Buffer.addChild(ElemDie);
}
}
+ DIType DTy = CTy.getTypeDerivedFrom();
+ if (DTy.Verify()) {
+ addType(&Buffer, DTy);
+ addUInt(&Buffer, dwarf::DW_AT_enum_class, dwarf::DW_FORM_flag, 1);
+ }
}
break;
case dwarf::DW_TAG_subroutine_type: {
OpenPOWER on IntegriCloud