[llvm-commits] CVS: llvm/include/llvm/Target/TargetJITInfo.h

Andrew Lenharth alenhar2 at cs.uiuc.edu
Fri Jul 22 13:46:54 PDT 2005



Changes in directory llvm/include/llvm/Target:

TargetJITInfo.h updated: 1.6 -> 1.7
---
Log message:

allow constants to be relocated like GV (necessary for alpha, as constants are relocated with globals, not with .text), and allow targets to have a GOT managed for them

---
Diffs of the changes:  (+9 -1)

 TargetJITInfo.h |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/Target/TargetJITInfo.h
diff -u llvm/include/llvm/Target/TargetJITInfo.h:1.6 llvm/include/llvm/Target/TargetJITInfo.h:1.7
--- llvm/include/llvm/Target/TargetJITInfo.h:1.6	Thu Apr 21 15:53:44 2005
+++ llvm/include/llvm/Target/TargetJITInfo.h	Fri Jul 22 15:46:42 2005
@@ -77,9 +77,17 @@
     /// 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
 






More information about the llvm-commits mailing list