Don't print out a default newline when emitting the section offset. There are
authorBill Wendling <isanbard@gmail.com>
Thu, 11 Feb 2010 01:13:02 +0000 (01:13 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 11 Feb 2010 01:13:02 +0000 (01:13 +0000)
almost always comments afterwards that need printing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95839 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DIE.cpp
lib/CodeGen/AsmPrinter/DwarfPrinter.cpp

index 349e0ac40f1edfb109749b241ee0d2bbecadcf70..01968b9913b8244138a6358300c96ceb5befd818 100644 (file)
@@ -313,6 +313,7 @@ void DIESectionOffset::EmitValue(DwarfPrinter *D, unsigned Form) const {
   D->EmitSectionOffset(Label.getTag(), Section.getTag(),
                        Label.getNumber(), Section.getNumber(),
                        IsSmall, IsEH, UseSet);
+  EOL(""); // FIXME: Necesssary?
 }
 
 /// SizeOf - Determine size of delta value in bytes.
index 415390bc2817fabf7a11b17c164ddf3cb17ccbcc..4de0b7474012974e13552163a0a2ecaa0cf12bbf 100644 (file)
@@ -248,7 +248,6 @@ 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);
@@ -257,7 +256,6 @@ void DwarfPrinter::EmitSectionOffset(const char* Label, const char* Section,
       O << "-";
       PrintLabelName(Section, SectionNumber);
     }
-    O << "\n";
   }
 }