mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Don't globalize internal functions
llvm-svn: 24727
This commit is contained in:
parent
43152cb8b6
commit
71443a0e36
@ -34,7 +34,8 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
// Print out labels for the function.
|
||||
SwitchSection("\t.text\n", MF.getFunction());
|
||||
EmitAlignment(4); // FIXME: This should be parameterized somewhere.
|
||||
O << "\t.globl\t" << CurrentFnName << "\n";
|
||||
if (!MF.getFunction()->hasInternalLinkage())
|
||||
O << "\t.globl\t" << CurrentFnName << "\n";
|
||||
if (HasDotTypeDotSizeDirective)
|
||||
O << "\t.type\t" << CurrentFnName << ", @function\n";
|
||||
O << CurrentFnName << ":\n";
|
||||
|
Loading…
Reference in New Issue
Block a user