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
diff --git a/lib/Target/Alpha/AlphaCodeEmitter.cpp b/lib/Target/Alpha/AlphaCodeEmitter.cpp
index cea0fe8..8bd8766 100644
--- a/lib/Target/Alpha/AlphaCodeEmitter.cpp
+++ b/lib/Target/Alpha/AlphaCodeEmitter.cpp
@@ -178,6 +178,7 @@
          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 @@
       break;
     case Alpha::LDQl:
       Reloc = Alpha::reloc_literal;
+      useGOT = true;
       break;
     case Alpha::LDAg:
     case Alpha::LDAHg:
@@ -206,7 +208,7 @@
     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,