Skip to content

Commit

Permalink
when emitting DIEs, emit the comment on the same line as the directive.
Browse files Browse the repository at this point in the history
This fixes FrontendObjC/2009-11-30-Objc-ID.m


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94369 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Jan 24, 2010
1 parent 3f6bfda commit a801362
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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.
Expand Down

0 comments on commit a801362

Please sign in to comment.