Missing .globl for weak / link-once .text symbols.
llvm-svn: 26321
This commit is contained in:
parent
e5521db5bc
commit
7714a59d91
|
@ -51,6 +51,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|||
if (forDarwin) {
|
||||
SwitchSection(".section __TEXT,__textcoal_nt,coalesced,pure_instructions",
|
||||
F);
|
||||
O << "\t.globl\t" << CurrentFnName << "\n";
|
||||
O << "\t.weak_definition\t" << CurrentFnName << "\n";
|
||||
} else {
|
||||
EmitAlignment(4, F); // FIXME: This should be parameterized somewhere.
|
||||
|
|
Loading…
Reference in New Issue