summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-03 20:30:20 +0000
committerChris Lattner <sabre@nondot.org>2006-05-03 20:30:20 +0000
commite3a9c70ba0d798fec80b63ea1507fa546c41bfc3 (patch)
treeec3d87440790872f8c70e1ab9cbe21e5151624fd /llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
parent005d7174c8d9257cd39eede9157fddec3928ec33 (diff)
downloadbcm5719-llvm-e3a9c70ba0d798fec80b63ea1507fa546c41bfc3.tar.gz
bcm5719-llvm-e3a9c70ba0d798fec80b63ea1507fa546c41bfc3.zip
Change from using MachineRelocation ctors to using static methods
in MachineRelocation to create Relocations. llvm-svn: 28088
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp b/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
index cd033204e32..d8cf7df45f3 100644
--- a/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
+++ b/llvm/lib/Target/Alpha/AlphaCodeEmitter.cpp
@@ -215,15 +215,15 @@ int AlphaCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
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()) {
OpenPOWER on IntegriCloud