diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 0998c29226a..7237126901a 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -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';