[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32CodeEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 22 22:56:43 PST 2004
Changes in directory llvm/lib/Target/PowerPC:
PPC32CodeEmitter.cpp updated: 1.17 -> 1.18
---
Log message:
Fix a minor bug
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/Target/PowerPC/PPC32CodeEmitter.cpp
diff -u llvm/lib/Target/PowerPC/PPC32CodeEmitter.cpp:1.17 llvm/lib/Target/PowerPC/PPC32CodeEmitter.cpp:1.18
--- llvm/lib/Target/PowerPC/PPC32CodeEmitter.cpp:1.17 Mon Nov 22 23:59:53 2004
+++ llvm/lib/Target/PowerPC/PPC32CodeEmitter.cpp Tue Nov 23 00:56:31 2004
@@ -220,7 +220,8 @@
}
// Special treatment for global symbols: constants and vars
- if (MO.isConstantPoolIndex() || MO.isGlobalAddress()) {
+ if ((MO.isConstantPoolIndex() || MO.isGlobalAddress()) &&
+ MI.getOpcode() != PPC::CALLpcrel) {
unsigned Opcode = MI.getOpcode();
assert(MovePCtoLROffset && "MovePCtoLR not seen yet?");
More information about the llvm-commits
mailing list