Missing .globl for weak / link-once .text symbols.

llvm-svn: 26321
This commit is contained in:
Evan Cheng 2006-02-22 23:59:57 +00:00
parent e5521db5bc
commit 7714a59d91
1 changed files with 1 additions and 0 deletions

View File

@ -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.