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:
Chris Lattner
2010-01-16 00:21:18 +00:00
parent 89a9c91247
commit 12164414dd
10 changed files with 367 additions and 196 deletions
@@ -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;