rejigger the world so that EmitInstruction prints the \n at
the end of the instruction instead of expecting the caller to
do it. This currently causes the asm-verbose instruction
comments to be on the next line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95178 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
index 241bb90..17581a9 100644
--- a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
@@ -555,6 +555,7 @@
O << ", ";
printOperand(MI, 1);
O << ", " << (unsigned int)SH;
+ O << '\n';
return;
}
}
@@ -565,6 +566,7 @@
printOperand(MI, 0);
O << ", ";
printOperand(MI, 1);
+ O << '\n';
return;
}
@@ -578,11 +580,13 @@
O << ", ";
printOperand(MI, 1);
O << ", " << (unsigned int)SH;
+ O << '\n';
return;
}
}
printInstruction(MI);
+ O << '\n';
}
void PPCLinuxAsmPrinter::EmitFunctionEntryLabel() {