diff options
author | Eric Christopher <echristo@gmail.com> | 2013-10-04 22:40:10 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-10-04 22:40:10 +0000 |
commit | 6b8209b6b7e8dee6c2d38c927f8ae06476854ac0 (patch) | |
tree | 556f1bf9d387309fb920b5283dedaadcca73d224 /llvm/lib/CodeGen | |
parent | dccd32866bb00e7d7114f70a26e3493d1266d14c (diff) | |
download | bcm5719-llvm-6b8209b6b7e8dee6c2d38c927f8ae06476854ac0.tar.gz bcm5719-llvm-6b8209b6b7e8dee6c2d38c927f8ae06476854ac0.zip |
Use addFlag to add the enum class attribute.
This has the side effect of using DW_FORM_flag_present on dwarf4 and above.
llvm-svn: 191991
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index a487b10aa83..3ff6d68a22d 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1014,7 +1014,7 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) { DIType DTy = CTy.getTypeDerivedFrom(); if (DTy) { addType(&Buffer, DTy); - addUInt(&Buffer, dwarf::DW_AT_enum_class, dwarf::DW_FORM_flag, 1); + addFlag(&Buffer, dwarf::DW_AT_enum_class); } } break; |