From 73de5fbfc3f8199d59e2cb7749f0441c715adbb6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 28 Jan 2010 01:28:58 +0000 Subject: Give AsmPrinter the most common expected implementation of runOnMachineFunction, and switch PPC to use EmitFunctionBody. The two ppc asmprinters now don't heave to define runOnMachineFunction. llvm-svn: 94722 --- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter') diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index e7a128623e4..e97e9bd251b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -344,7 +344,6 @@ void AsmPrinter::EmitFunctionEntryLabel() { /// EmitFunctionBody - This method emits the body and trailer for a /// function. void AsmPrinter::EmitFunctionBody() { - // Print out code for the function. bool HasAnyRealCode = false; for (MachineFunction::const_iterator I = MF->begin(), E = MF->end(); @@ -374,8 +373,8 @@ void AsmPrinter::EmitFunctionBody() { } // If the function is empty and the object file uses .subsections_via_symbols, - // then we need to emit *some* thing to the function body to prevent the - // labels from collapsing together. + // then we need to emit *something* to the function body to prevent the + // labels from collapsing together. Just emit a 0 byte. if (MAI->hasSubsectionsViaSymbols() && !HasAnyRealCode) OutStreamer.EmitIntValue(0, 1, 0/*addrspace*/); -- cgit v1.2.3