mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-03 00:33:09 +00:00
Don't globalize internal functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb17bac3a3
commit
272f998f6f
@ -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…
x
Reference in New Issue
Block a user