mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
MCize a bunch more stuff, eliminating a lot of uses of the mangler
and CurrentFnName. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -147,22 +147,29 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
case Function::PrivateLinkage:
|
||||
case Function::LinkerPrivateLinkage:
|
||||
break;
|
||||
case Function::ExternalLinkage:
|
||||
O << "\t.globl " << CurrentFnName << "\n";
|
||||
break;
|
||||
case Function::ExternalLinkage:
|
||||
O << "\t.globl ";
|
||||
CurrentFnSym->print(O, MAI);
|
||||
O << "\n";
|
||||
break;
|
||||
case Function::WeakAnyLinkage:
|
||||
case Function::WeakODRLinkage:
|
||||
case Function::LinkOnceAnyLinkage:
|
||||
case Function::LinkOnceODRLinkage:
|
||||
O << MAI->getWeakRefDirective() << CurrentFnName << "\n";
|
||||
O << MAI->getWeakRefDirective();
|
||||
CurrentFnSym->print(O, MAI);
|
||||
O << "\n";
|
||||
break;
|
||||
}
|
||||
|
||||
printVisibility(CurrentFnName, F->getVisibility());
|
||||
printVisibility(CurrentFnSym, F->getVisibility());
|
||||
|
||||
O << "\t.ent " << CurrentFnName << "\n";
|
||||
O << "\t.ent ";
|
||||
CurrentFnSym->print(O, MAI);
|
||||
O << "\n";
|
||||
|
||||
O << CurrentFnName << ":\n";
|
||||
CurrentFnSym->print(O, MAI);
|
||||
O << ":\n";
|
||||
|
||||
// Print out code for the function.
|
||||
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
|
||||
@@ -184,7 +191,9 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
}
|
||||
}
|
||||
|
||||
O << "\t.end " << CurrentFnName << "\n";
|
||||
O << "\t.end ";
|
||||
CurrentFnSym->print(O, MAI);
|
||||
O << "\n";
|
||||
|
||||
// We didn't modify anything.
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user