forked from OSchip/llvm-project
parent
80361a9297
commit
311622f912
|
@ -604,10 +604,10 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
|
|||
O << "\t\t; '" << I->getName() << "'\n";
|
||||
} else {
|
||||
switch (I->getLinkage()) {
|
||||
case GlobalValue::LinkOnceLinkage:
|
||||
case GlobalValue::ExternalWeakLinkage:
|
||||
O << "\t.weak_reference " << name << "\n";
|
||||
break;
|
||||
case GlobalValue::LinkOnceLinkage:
|
||||
case GlobalValue::WeakLinkage:
|
||||
O << "\t.globl " << name << '\n'
|
||||
<< "\t.weak_definition " << name << '\n';
|
||||
|
|
Loading…
Reference in New Issue