diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-28 01:48:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-28 01:48:52 +0000 |
| commit | fd97a3369e1250a7dafa41791f2b12c6d8a4d3c8 (patch) | |
| tree | 1418f40c2a944359b54e86d5b8948f0247e3fa29 /llvm/lib/Target/XCore/AsmPrinter | |
| parent | 54c05308348cc0687d9b5a0e1ec60f2e79436b02 (diff) | |
| download | bcm5719-llvm-fd97a3369e1250a7dafa41791f2b12c6d8a4d3c8.tar.gz bcm5719-llvm-fd97a3369e1250a7dafa41791f2b12c6d8a4d3c8.zip | |
Switch MSP430, SPU, Sparc, and SystemZ to use EmitFunctionBody().
Diffstat:
6 files changed, 30 insertions(+), 284 deletions(-)
llvm-svn: 94727
Diffstat (limited to 'llvm/lib/Target/XCore/AsmPrinter')
| -rw-r--r-- | llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp b/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp index 39344959b6f..59c91f27e30 100644 --- a/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp +++ b/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp @@ -74,7 +74,6 @@ namespace { virtual void EmitGlobalVariable(const GlobalVariable *GV); void emitFunctionStart(MachineFunction &MF); - void emitFunctionEnd(MachineFunction &MF); void printInstruction(const MachineInstr *MI); // autogenerated. static const char *getRegisterName(unsigned RegNo); @@ -220,12 +219,6 @@ void XCoreAsmPrinter::emitFunctionStart(MachineFunction &MF) { O << *CurrentFnSym << ":\n"; } -/// Emit the directives on the end of functions -void XCoreAsmPrinter::emitFunctionEnd(MachineFunction &MF) { - // Mark the end of the function - O << "\t.cc_bottom " << *CurrentFnSym << ".function\n"; -} - /// runOnMachineFunction - This uses the printMachineInstruction() /// method to print assembly for each instruction. /// @@ -246,9 +239,8 @@ bool XCoreAsmPrinter::runOnMachineFunction(MachineFunction &MF) { I != E; ++I) { // Print a label for the basic block. - if (I != MF.begin()) { + if (I != MF.begin()) EmitBasicBlockStart(I); - } for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end(); II != E; ++II) { @@ -261,7 +253,7 @@ bool XCoreAsmPrinter::runOnMachineFunction(MachineFunction &MF) { } // Emit function end directives - emitFunctionEnd(MF); + O << "\t.cc_bottom " << *CurrentFnSym << ".function\n"; // Print out jump tables referenced by the function EmitJumpTableInfo(); |

