mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
fix handling of weak linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24964 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84c744fe58
commit
cec26fc3bf
@ -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