1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

fix handling of weak linkage

llvm-svn: 24964
This commit is contained in:
Chris Lattner 2005-12-22 21:15:17 +00:00
parent 56825ced86
commit 8c2622a14e

View File

@ -495,9 +495,8 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
switch (I->getLinkage()) {
case GlobalValue::LinkOnceLinkage:
case GlobalValue::WeakLinkage:
O << ".globl " << name << '\n'
<< ".weak_definition " << name << '\n'
<< ".private_extern " << name << '\n';
O << "\t.globl " << name << '\n'
<< "\t.weak_definition " << name << '\n';
SwitchSection(".section __DATA,__datacoal_nt,coalesced", I);
break;
case GlobalValue::AppendingLinkage: