mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
Weak and linkonce global vars should still have a .globl emitted for them
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f492f9901a
commit
d9e0ba49a4
@ -468,7 +468,8 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
|
||||
switch (I->getLinkage()) {
|
||||
case GlobalValue::LinkOnceLinkage:
|
||||
case GlobalValue::WeakLinkage:
|
||||
O << ".weak_definition " << name << '\n'
|
||||
O << ".globl " << name << '\n'
|
||||
<< ".weak_definition " << name << '\n'
|
||||
<< ".private_extern " << name << '\n';
|
||||
SwitchSection(".section __DATA,__datacoal_nt,coalesced", I);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user