summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-02-11 01:13:02 +0000
committerBill Wendling <isanbard@gmail.com>2010-02-11 01:13:02 +0000
commit6034260c431b5488798d215124ef2e8bc31fc54d (patch)
tree3deda29415b20f5b24f066f03b044105c4180d30
parent13b9782cc01cb62e749721603d546e73ee569394 (diff)
downloadbcm5719-llvm-6034260c431b5488798d215124ef2e8bc31fc54d.tar.gz
bcm5719-llvm-6034260c431b5488798d215124ef2e8bc31fc54d.zip
Don't print out a default newline when emitting the section offset. There are
almost always comments afterwards that need printing. llvm-svn: 95839
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIE.cpp1
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
index 349e0ac40f1..01968b9913b 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
@@ -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.
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
index 415390bc281..4de0b747401 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
@@ -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";
}
}
OpenPOWER on IntegriCloud