diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-10 00:36:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-10 00:36:00 +0000 |
commit | ff68a42121f71774bc318a416314afda110e8004 (patch) | |
tree | 64ee4bb4c6226487be1450f3c9309849f6ed306f /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 113b8ad7cfd570eb26ce107c626e224254965f94 (diff) | |
download | bcm5719-llvm-ff68a42121f71774bc318a416314afda110e8004.tar.gz bcm5719-llvm-ff68a42121f71774bc318a416314afda110e8004.zip |
print all the newlines at the end of instructions with
OutStreamer.AddBlankLine instead of textually.
llvm-svn: 95734
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 570916f7b78..25e0818404b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1442,7 +1442,8 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const { } } } - O << "\n\t" << MAI->getCommentString() << MAI->getInlineAsmEnd() << '\n'; + O << "\n\t" << MAI->getCommentString() << MAI->getInlineAsmEnd(); + OutStreamer.AddBlankLine(); } /// printImplicitDef - This method prints the specified machine instruction @@ -1451,7 +1452,8 @@ void AsmPrinter::printImplicitDef(const MachineInstr *MI) const { if (!VerboseAsm) return; O.PadToColumn(MAI->getCommentColumn()); O << MAI->getCommentString() << " implicit-def: " - << TRI->getName(MI->getOperand(0).getReg()) << '\n'; + << TRI->getName(MI->getOperand(0).getReg()); + OutStreamer.AddBlankLine(); } void AsmPrinter::printKill(const MachineInstr *MI) const { @@ -1463,14 +1465,14 @@ void AsmPrinter::printKill(const MachineInstr *MI) const { assert(op.isReg() && "KILL instruction must have only register operands"); O << ' ' << TRI->getName(op.getReg()) << (op.isDef() ? "<def>" : "<kill>"); } - O << '\n'; + OutStreamer.AddBlankLine(); } /// printLabel - This method prints a local label used by debug and /// exception handling tables. void AsmPrinter::printLabelInst(const MachineInstr *MI) const { printLabel(MI->getOperand(0).getImm()); - O << '\n'; + OutStreamer.AddBlankLine(); } void AsmPrinter::printLabel(unsigned Id) const { |