Add support to the JIT for true non-lazy operation. When a call to a function
[oota-llvm.git] / lib / Target / X86 / X86JITInfo.h
index ed660b0b5850e453614763f11ec9b94ef9a43c75..9affa3176b2dfbf7a4278fd2420b7ec9bf470d65 100644 (file)
@@ -49,6 +49,12 @@ namespace llvm {
     virtual void *emitFunctionStub(const Function* F, void *Fn,
                                    MachineCodeEmitter &MCE);
 
+    /// emitFunctionStubAtAddr - Use the specified MachineCodeEmitter object to
+    /// emit a small native function that simply calls Fn. Emit the stub into
+    /// the supplied buffer.
+    virtual void emitFunctionStubAtAddr(const Function* F, void *Fn,
+                                        void *Buffer, MachineCodeEmitter &MCE);
+
     /// getPICJumpTableEntry - Returns the value of the jumptable entry for the
     /// specific basic block.
     virtual uintptr_t getPICJumpTableEntry(uintptr_t BB, uintptr_t JTBase);