diff options
| author | Eric Christopher <echristo@apple.com> | 2012-05-23 00:09:20 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2012-05-23 00:09:20 +0000 |
| commit | c49643586b90d8c796851e28616a48bb48c9a0cc (patch) | |
| tree | 658130f4c2a32ec682e627efed678b9dd7c87bf1 /llvm/lib/CodeGen/AsmPrinter | |
| parent | ebffd2e7fd08e63e345bdf27a32938de79783240 (diff) | |
| download | bcm5719-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.cpp | 5 |
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: { |

