summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit5adf987417c7e5c37f88094b56f4d4e357235286 (patch)
tree6bd7dbea0dc1e033df41f98488833247ee243de6 /llvm/lib/CodeGen
parent734e95e05c642a494895fcabea38af079bae56f2 (diff)
downloadbcm5719-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/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
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.
OpenPOWER on IntegriCloud