diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-28 01:28:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-28 01:28:58 +0000 |
commit | 73de5fbfc3f8199d59e2cb7749f0441c715adbb6 (patch) | |
tree | 72fa23ecec88cb1040939a3647f11d8a7b50fcea /llvm/lib/CodeGen/AsmPrinter | |
parent | c70ee8610d96e0a6c493a9522bd568442d675470 (diff) | |
download | bcm5719-llvm-73de5fbfc3f8199d59e2cb7749f0441c715adbb6.tar.gz bcm5719-llvm-73de5fbfc3f8199d59e2cb7749f0441c715adbb6.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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*/); |