diff options
author | Eric Christopher <echristo@gmail.com> | 2014-03-06 00:00:49 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-03-06 00:00:49 +0000 |
commit | 26148a62c3ae9543f30c163f240e4b2c32970480 (patch) | |
tree | 97f9fcd2f902b8d20fb78f3cedb6cf05eef33e46 /lib | |
parent | 1da08cb171c0684d47bf37d4a10f4e53dcb229c5 (diff) | |
download | llvm-26148a62c3ae9543f30c163f240e4b2c32970480.tar.gz llvm-26148a62c3ae9543f30c163f240e4b2c32970480.tar.bz2 llvm-26148a62c3ae9543f30c163f240e4b2c32970480.tar.xz |
Remove special case in the DIEValue printing since it only existed
for verbose asm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index ba83b8b8d1..315c09f4da 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1996,8 +1996,12 @@ void DwarfDebug::emitDIE(DIE *Die) { dwarf::Form Form = AbbrevData[i].getForm(); assert(Form && "Too many attributes for DIE (check abbreviation)"); - if (Asm->isVerbose()) + if (Asm->isVerbose()) { Asm->OutStreamer.AddComment(dwarf::AttributeString(Attr)); + if (Attr == dwarf::DW_AT_accessibility) + Asm->OutStreamer.AddComment(dwarf::AccessibilityString( + cast<DIEInteger>(Values[i])->getValue())); + } switch (Attr) { case dwarf::DW_AT_abstract_origin: @@ -2032,14 +2036,6 @@ void DwarfDebug::emitDIE(DIE *Die) { } break; } - case dwarf::DW_AT_accessibility: { - if (Asm->isVerbose()) { - DIEInteger *V = cast<DIEInteger>(Values[i]); - Asm->OutStreamer.AddComment(dwarf::AccessibilityString(V->getValue())); - } - Values[i]->EmitValue(Asm, Form); - break; - } default: // Emit an attribute using the defined form. Values[i]->EmitValue(Asm, Form); |