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:
Chris Lattner 2005-12-16 21:46:14 +00:00
parent f492f9901a
commit d9e0ba49a4

View File

@ -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;