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:
parent
56825ced86
commit
8c2622a14e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user