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 | 371d95851a4e506dd0baba01c759f5dafcb3c128 (patch) | |
tree | e05e7ff463643436b581acdf055f847b45fe8f23 /lib | |
parent | 9c0c9485808ba4280a62429700693c41fa304598 (diff) | |
download | external_llvm-371d95851a4e506dd0baba01c759f5dafcb3c128.zip external_llvm-371d95851a4e506dd0baba01c759f5dafcb3c128.tar.gz external_llvm-371d95851a4e506dd0baba01c759f5dafcb3c128.tar.bz2 |
Use addFlag to add the enum class attribute.
This has the side effect of using DW_FORM_flag_present on dwarf4 and above.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index a487b10..3ff6d68 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/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; |