mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
Functions with LinkOnce and weak linkage still need to be aligned. Doh.
llvm-svn: 40499
This commit is contained in:
parent
1e53615073
commit
f34a0509c2
@ -111,6 +111,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
case Function::LinkOnceLinkage:
|
||||
case Function::WeakLinkage:
|
||||
if (Subtarget->isTargetDarwin()) {
|
||||
EmitAlignment(4, F); // FIXME: This should be parameterized somewhere.
|
||||
O << "\t.globl\t" << CurrentFnName << "\n";
|
||||
O << "\t.weak_definition\t" << CurrentFnName << "\n";
|
||||
} else if (Subtarget->isTargetCygMing()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user