use EmitRawText instead of O in DwarfPrinter.
authorChris Lattner <sabre@nondot.org>
Sun, 4 Apr 2010 07:25:52 +0000 (07:25 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 4 Apr 2010 07:25:52 +0000 (07:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100323 91177308-0d34-0410-b5e6-96231b3b80d8

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

index ba32884885c7fa95bd53942b5398ac7bcac17b76..ab88921784024dfd1d2407d72fd859d495f64c6a 100644 (file)
@@ -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) {
index 17eb2e8727425cdcba2f69c467efc663b42a9db4..9de17883420bbc8fa361c58f6ddf1379adfcf30e 100644 (file)
@@ -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*/);