[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp

Nate Begeman natebegeman at mac.com
Sun Oct 17 16:02:12 PDT 2004



Changes in directory llvm/lib/Target/PowerPC:

PowerPCAsmPrinter.cpp updated: 1.62 -> 1.63
---
Log message:

Generate correct stubs for weak-linked symbols

---
Diffs of the changes:  (+3 -2)

Index: llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.62 llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.63
--- llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.62	Tue Sep 21 23:40:25 2004
+++ llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp	Sun Oct 17 18:01:34 2004
@@ -366,8 +366,9 @@
       return;
     }
     
-    // External global variables need a non-lazily-resolved stub
-    if (GV->isExternal() && getTM().AddressTaken.count(GV)) {
+    // External or weakly linked global variables need non-lazily-resolved stubs
+    if ((GV->isExternal() || GV->hasWeakLinkage()) && 
+        getTM().AddressTaken.count(GV)) {
       GVStubs.insert(Name);
       O << "L" << Name << "$non_lazy_ptr";
       return;






More information about the llvm-commits mailing list