summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-24 18:54:17 +0000
committerChris Lattner <sabre@nondot.org>2010-01-24 18:54:17 +0000
commita801362e84e08ccaf6f4f22f22e61fe3732c3754 (patch)
tree0ebdb15998b34e757d30742d71ea410c3da85610
parent3f6bfdaedaca984c178f1668c1ca08f52d607aee (diff)
downloadllvm-a801362e84e08ccaf6f4f22f22e61fe3732c3754.tar.gz
llvm-a801362e84e08ccaf6f4f22f22e61fe3732c3754.tar.bz2
llvm-a801362e84e08ccaf6f4f22f22e61fe3732c3754.tar.xz
when emitting DIEs, emit the comment on the same line as the directive.
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
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 513987f902..4fe1b8512d 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/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.