aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaCodeEmitter.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-07-28 12:45:20 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-07-28 12:45:20 +0000
commita4433e1b3101ce171dad394149212bc38c0d1e49 (patch)
treeb11bb529925be42f3d153adb3edbd7a0a3aadeec /lib/Target/Alpha/AlphaCodeEmitter.cpp
parent6a9746127a168306a670eaff11925605dbea9d4f (diff)
get lazy JITing working. Some of shootout runs now
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaCodeEmitter.cpp')
-rw-r--r--lib/Target/Alpha/AlphaCodeEmitter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaCodeEmitter.cpp b/lib/Target/Alpha/AlphaCodeEmitter.cpp
index cea0fe8982..8bd87666b8 100644
--- a/lib/Target/Alpha/AlphaCodeEmitter.cpp
+++ b/lib/Target/Alpha/AlphaCodeEmitter.cpp
@@ -178,6 +178,7 @@ int AlphaCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
MO.getGlobal()->isExternal()) );
unsigned Reloc = 0;
int Offset = 0;
+ bool useGOT = false;
switch (MI.getOpcode()) {
case Alpha::LDLr:
case Alpha::LDQr:
@@ -193,6 +194,7 @@ int AlphaCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
break;
case Alpha::LDQl:
Reloc = Alpha::reloc_literal;
+ useGOT = true;
break;
case Alpha::LDAg:
case Alpha::LDAHg:
@@ -206,7 +208,7 @@ int AlphaCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
if (MO.isGlobalAddress())
MCE.addRelocation(MachineRelocation((unsigned)MCE.getCurrentPCOffset(),
Reloc, MO.getGlobal(), Offset,
- true, true));
+ false, useGOT));
else if (MO.isExternalSymbol())
MCE.addRelocation(MachineRelocation((unsigned)MCE.getCurrentPCOffset(),
Reloc, MO.getSymbolName(), Offset,