[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed May 3 13:30:34 PDT 2006
Changes in directory llvm/lib/Target/Alpha:
AlphaCodeEmitter.cpp updated: 1.14 -> 1.15
---
Log message:
Change from using MachineRelocation ctors to using static methods
in MachineRelocation to create Relocations.
---
Diffs of the changes: (+3 -3)
AlphaCodeEmitter.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
diff -u llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.14 llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.15
--- llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp:1.14 Wed May 3 12:10:41 2006
+++ llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp Wed May 3 15:30:20 2006
@@ -215,15 +215,15 @@
abort();
}
if (MO.isGlobalAddress())
- MCE.addRelocation(MachineRelocation((unsigned)MCE.getCurrentPCOffset(),
+ MCE.addRelocation(MachineRelocation::getGV(MCE.getCurrentPCOffset(),
Reloc, MO.getGlobal(), Offset,
false, useGOT));
else if (MO.isExternalSymbol())
- MCE.addRelocation(MachineRelocation((unsigned)MCE.getCurrentPCOffset(),
+ MCE.addRelocation(MachineRelocation::getExtSym(MCE.getCurrentPCOffset(),
Reloc, MO.getSymbolName(), Offset,
true));
else
- MCE.addRelocation(MachineRelocation((unsigned)MCE.getCurrentPCOffset(),
+ MCE.addRelocation(MachineRelocation::getConstPool(MCE.getCurrentPCOffset(),
Reloc, MO.getConstantPoolIndex(),
Offset));
} else if (MO.isMachineBasicBlock()) {
More information about the llvm-commits
mailing list