mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Use getSectionForFunction.
llvm-svn: 30740
This commit is contained in:
parent
d62ecab2e3
commit
cc21d20348
@ -121,13 +121,13 @@ bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
||||
// Print out labels for the function.
|
||||
const Function *F = MF.getFunction();
|
||||
SwitchToTextSection(getSectionForFunction(*F).c_str(), F);
|
||||
|
||||
switch (F->getLinkage()) {
|
||||
default: assert(0 && "Unknown linkage type!");
|
||||
case Function::InternalLinkage:
|
||||
SwitchToTextSection("\t.text", F);
|
||||
break;
|
||||
case Function::ExternalLinkage:
|
||||
SwitchToTextSection("\t.text", F);
|
||||
O << "\t.globl\t" << CurrentFnName << "\n";
|
||||
break;
|
||||
case Function::WeakLinkage:
|
||||
|
Loading…
Reference in New Issue
Block a user