aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-12-22 21:15:17 +0000
committerChris Lattner <sabre@nondot.org>2005-12-22 21:15:17 +0000
commitcec26fc3bf1f9d177a4befabd278410f0cb7d2b8 (patch)
treed48af4216eba8d0c4f03554e6f1eed59a2cf26d6
parent84c744fe582f05721f9b8a1bef0086184fc5f0ff (diff)
fix handling of weak linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24964 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 717b831086..a5eb9182ee 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -495,9 +495,8 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
switch (I->getLinkage()) {
case GlobalValue::LinkOnceLinkage:
case GlobalValue::WeakLinkage:
- O << ".globl " << name << '\n'
- << ".weak_definition " << name << '\n'
- << ".private_extern " << name << '\n';
+ O << "\t.globl " << name << '\n'
+ << "\t.weak_definition " << name << '\n';
SwitchSection(".section __DATA,__datacoal_nt,coalesced", I);
break;
case GlobalValue::AppendingLinkage: