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

Chris Lattner sabre at nondot.org
Wed Dec 6 11:40:19 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCCodeEmitter.cpp updated: 1.69 -> 1.70
---
Log message:

add relocation support for ppc64 branches.


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

 PPCCodeEmitter.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
diff -u llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.69 llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.70
--- llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.69	Tue Nov 14 12:44:47 2006
+++ llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp	Wed Dec  6 13:40:04 2006
@@ -127,11 +127,11 @@
   } else if (MO.isGlobalAddress() || MO.isExternalSymbol() ||
              MO.isConstantPoolIndex() || MO.isJumpTableIndex()) {
     unsigned Reloc = 0;
-    if (MI.getOpcode() == PPC::BL)
+    if (MI.getOpcode() == PPC::BL || MI.getOpcode() == PPC::BL8)
       Reloc = PPC::reloc_pcrel_bx;
     else {
       switch (MI.getOpcode()) {
-      default: DEBUG(MI.dump()); assert(0 && "Unknown instruction for relocation!");
+      default: MI.dump(); assert(0 && "Unknown instruction for relocation!");
       case PPC::LIS:
       case PPC::LIS8:
       case PPC::ADDIS:






More information about the llvm-commits mailing list