diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-04 07:25:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-04 07:25:52 +0000 |
commit | 0b9bdb47bd9447dbf5a9cb827be588deb8cb2759 (patch) | |
tree | f1b8094bf0e94253c4be6eb2eb24cff447cde210 | |
parent | 73ce0a63e6cfdbf13470154b84b7ee1de06f996f (diff) |
use EmitRawText instead of O in DwarfPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100323 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 1 | ||||
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index ba32884885..ab88921784 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1610,7 +1610,6 @@ void AsmPrinter::printImplicitDef(const MachineInstr *MI) const { void AsmPrinter::printKill(const MachineInstr *MI) const { if (!VerboseAsm) return; - O.PadToColumn(MAI->getCommentColumn()); std::string Str = "kill:"; for (unsigned n = 0, e = MI->getNumOperands(); n != e; ++n) { diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp index 17eb2e8727..9de1788342 100644 --- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp @@ -227,8 +227,7 @@ void DwarfPrinter::EmitSectionOffset(const MCSymbol *Label, // On COFF targets, we have to emit the weird .secrel32 directive. if (const char *SecOffDir = MAI->getDwarfSectionOffsetDirective()) { // FIXME: MCize. - Asm->O << SecOffDir << Label->getName(); - Asm->OutStreamer.AddBlankLine(); + Asm->OutStreamer.EmitRawText(SecOffDir + Twine(Label->getName())); } else { unsigned Size = IsSmall ? 4 : TD->getPointerSize(); Asm->OutStreamer.EmitSymbolValue(Label, Size, 0/*AddrSpace*/); |