add a new isStoreToStackSlot method
[oota-llvm.git] / include / llvm / Target / TargetJITInfo.h
index 79c8eaa61876ef79cdfe1988eaef82c09765ed99..9f083f6e591b1e373982ff354b559a2790db1700 100644 (file)
@@ -77,9 +77,17 @@ namespace llvm {
     /// it must rewrite the code to contain the actual addresses of any
     /// referenced global symbols.
     virtual void relocate(void *Function, MachineRelocation *MR,
-                          unsigned NumRelocs) {
+                          unsigned NumRelocs, unsigned char* GOTBase) {
       assert(NumRelocs == 0 && "This target does not have relocations!");
     }
+
+    /// needsGOT - Allows a target to specify that it would like the
+    // JIT to manage a GOT for it.
+    bool needsGOT() const { return useGOT; }
+
+  protected:
+    bool useGOT;
+
   };
 } // End llvm namespace