[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed May 3 13:30:35 PDT 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCCodeEmitter.cpp updated: 1.58 -> 1.59
---
Log message:
Change from using MachineRelocation ctors to using static methods
in MachineRelocation to create Relocations.
---
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.58 llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.59
--- llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp:1.58 Wed May 3 12:10:41 2006
+++ llvm/lib/Target/PowerPC/PPCCodeEmitter.cpp Wed May 3 15:30:20 2006
@@ -180,10 +180,10 @@
}
}
if (MO.isGlobalAddress())
- MCE.addRelocation(MachineRelocation(MCE.getCurrentPCOffset(),
+ MCE.addRelocation(MachineRelocation::getGV(MCE.getCurrentPCOffset(),
Reloc, MO.getGlobal(), 0));
else
- MCE.addRelocation(MachineRelocation(MCE.getCurrentPCOffset(),
+ MCE.addRelocation(MachineRelocation::getExtSym(MCE.getCurrentPCOffset(),
Reloc, MO.getSymbolName(), 0));
} else if (MO.isMachineBasicBlock()) {
unsigned* CurrPC = (unsigned*)(intptr_t)MCE.getCurrentPCValue();
More information about the llvm-commits
mailing list