diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-03 01:09:55 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-03 01:09:55 +0000 |
| commit | 996ec840d0867e95422d1de8f97efd934f233ea6 (patch) | |
| tree | 581319ef67966e67a4fccce839c58da91c5ad4d9 /llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp | |
| parent | 41ad1905c91b3bbedbacf42b12f8edef59466084 (diff) | |
| download | bcm5719-llvm-996ec840d0867e95422d1de8f97efd934f233ea6.tar.gz bcm5719-llvm-996ec840d0867e95422d1de8f97efd934f233ea6.zip | |
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.
llvm-svn: 95178
Diffstat (limited to 'llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp index 4118e7b8a36..5ae1cf10af2 100644 --- a/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp +++ b/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp @@ -75,7 +75,10 @@ namespace { void emitFrameDirective(); void printInstruction(const MachineInstr *MI); // autogenerated. - void EmitInstruction(const MachineInstr *MI) { printInstruction(MI); } + void EmitInstruction(const MachineInstr *MI) { + printInstruction(MI); + O << '\n'; + } virtual void EmitFunctionBodyStart(); virtual void EmitFunctionBodyEnd(); static const char *getRegisterName(unsigned RegNo); |

