diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-24 18:54:17 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-24 18:54:17 +0000 |
| commit | 5adf987417c7e5c37f88094b56f4d4e357235286 (patch) | |
| tree | 6bd7dbea0dc1e033df41f98488833247ee243de6 /llvm/lib | |
| parent | 734e95e05c642a494895fcabea38af079bae56f2 (diff) | |
| download | bcm5719-llvm-5adf987417c7e5c37f88094b56f4d4e357235286.tar.gz bcm5719-llvm-5adf987417c7e5c37f88094b56f4d4e357235286.zip | |
when emitting DIEs, emit the comment on the same line as the directive.
This fixes FrontendObjC/2009-11-30-Objc-ID.m
llvm-svn: 94369
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 513987f9020..4fe1b8512dc 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2366,6 +2366,9 @@ void DwarfDebug::emitDIE(DIE *Die) { unsigned Form = AbbrevData[i].getForm(); assert(Form && "Too many attributes for DIE (check abbreviation)"); + if (Asm->VerboseAsm) + Asm->OutStreamer.AddComment(dwarf::AttributeString(Attr)); + switch (Attr) { case dwarf::DW_AT_sibling: Asm->EmitInt32(Die->getSiblingOffset()); @@ -2382,8 +2385,6 @@ void DwarfDebug::emitDIE(DIE *Die) { Values[i]->EmitValue(this, Form); break; } - - EOL(dwarf::AttributeString(Attr)); } // Emit the DIE children if any. |

