fix some issues where we weren't emitting enough newlines.
authorChris Lattner <sabre@nondot.org>
Sun, 24 Jan 2010 19:01:06 +0000 (19:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Jan 2010 19:01:06 +0000 (19:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94370 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfPrinter.cpp

index 4fe1b8512dcf14a9b8549a5c3ae105b716ccaf8c..6a93cc6578db223b4b1e9f4f17ddcd0fb6e17d0e 100644 (file)
@@ -2383,6 +2383,7 @@ void DwarfDebug::emitDIE(DIE *Die) {
     default:
       // Emit an attribute using the defined form.
       Values[i]->EmitValue(this, Form);
+      O << "\n"; // REMOVE This once all EmitValue impls emit their own newline.
       break;
     }
   }
index d204bba7e99345e936fa1f3be8c42f78bf5ecdf1..f2f444a13d0ccf32715e4e1769f1614b3857025d 100644 (file)
@@ -247,6 +247,7 @@ void DwarfPrinter::EmitSectionOffset(const char* Label, const char* Section,
     PrintRelDirective(IsSmall);
     PrintLabelName("set", SetCounter, Flavor);
     ++SetCounter;
+    O << "\n";
   } else {
     PrintRelDirective(IsSmall, true);
     PrintLabelName(Label, LabelNumber);
@@ -255,6 +256,7 @@ void DwarfPrinter::EmitSectionOffset(const char* Label, const char* Section,
       O << "-";
       PrintLabelName(Section, SectionNumber);
     }
+    O << "\n";
   }
 }