aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 0998c29226..7237126901 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';