forked from OSchip/llvm-project
parent
d4d255a408
commit
4431699187
|
@ -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