mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 22:24:28 +00:00
add target hooks for emitting random gunk before and after the function body.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -344,6 +344,9 @@ void AsmPrinter::EmitFunctionEntryLabel() {
|
||||
/// EmitFunctionBody - This method emits the body and trailer for a
|
||||
/// function.
|
||||
void AsmPrinter::EmitFunctionBody() {
|
||||
// Emit target-specific gunk before the function body.
|
||||
EmitFunctionBodyStart();
|
||||
|
||||
// Print out code for the function.
|
||||
bool HasAnyRealCode = false;
|
||||
for (MachineFunction::const_iterator I = MF->begin(), E = MF->end();
|
||||
@ -378,6 +381,9 @@ void AsmPrinter::EmitFunctionBody() {
|
||||
if (MAI->hasSubsectionsViaSymbols() && !HasAnyRealCode)
|
||||
OutStreamer.EmitIntValue(0, 1, 0/*addrspace*/);
|
||||
|
||||
// Emit target-specific gunk after the function body.
|
||||
EmitFunctionBodyEnd();
|
||||
|
||||
if (MAI->hasDotTypeDotSizeDirective())
|
||||
O << "\t.size\t" << *CurrentFnSym << ", .-" << *CurrentFnSym << '\n';
|
||||
|
||||
|
Reference in New Issue
Block a user