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

Reid Spencer reid at x10sys.com
Tue Jan 30 12:10:10 PST 2007



Changes in directory llvm/lib/Target/PowerPC:

PPCAsmPrinter.cpp updated: 1.231 -> 1.232
PPCSubtarget.cpp updated: 1.28 -> 1.29
---
Log message:

For PR1136: http://llvm.org/PR1136 : Rename GlobalVariable::isExternal as isDeclaration to avoid
confusion with external linkage types.


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

 PPCAsmPrinter.cpp |    4 ++--
 PPCSubtarget.cpp  |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.231 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.232
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.231	Tue Jan 30 02:04:53 2007
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp	Tue Jan 30 14:08:38 2007
@@ -183,7 +183,7 @@
       if (TM.getRelocationModel() != Reloc::Static) {
         if (MO.getType() == MachineOperand::MO_GlobalAddress) {
           GlobalValue *GV = MO.getGlobal();
-          if (((GV->isExternal() || GV->hasWeakLinkage() ||
+          if (((GV->isDeclaration() || GV->hasWeakLinkage() ||
                 GV->hasLinkOnceLinkage()))) {
             // Dynamically-resolved functions need a stub for the function.
             std::string Name = Mang->getValueName(GV);
@@ -381,7 +381,7 @@
 
     // External or weakly linked global variables need non-lazily-resolved stubs
     if (TM.getRelocationModel() != Reloc::Static) {
-      if (((GV->isExternal() || GV->hasWeakLinkage() ||
+      if (((GV->isDeclaration() || GV->hasWeakLinkage() ||
             GV->hasLinkOnceLinkage()))) {
         GVStubs.insert(Name);
         O << "L" << Name << "$non_lazy_ptr";


Index: llvm/lib/Target/PowerPC/PPCSubtarget.cpp
diff -u llvm/lib/Target/PowerPC/PPCSubtarget.cpp:1.28 llvm/lib/Target/PowerPC/PPCSubtarget.cpp:1.29
--- llvm/lib/Target/PowerPC/PPCSubtarget.cpp:1.28	Tue Jan 16 03:29:16 2007
+++ llvm/lib/Target/PowerPC/PPCSubtarget.cpp	Tue Jan 30 14:08:38 2007
@@ -137,5 +137,5 @@
     return false;
   
   return GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() ||
-         (GV->isExternal() && !GV->hasNotBeenReadFromBytecode());
+         (GV->isDeclaration() && !GV->hasNotBeenReadFromBytecode());
 }






More information about the llvm-commits mailing list