Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.127 -> 1.128 --- Log message: Weak and linkonce global vars should still have a .globl emitted for them --- Diffs of the changes: (+2 -1) PPCAsmPrinter.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.127 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.128 --- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.127 Thu Dec 15 18:22:14 2005 +++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Fri Dec 16 15:46:14 2005 @@ -468,7 +468,8 @@ 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; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits