aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/JIT/VM.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-12 07:12:02 +0000
committerChris Lattner <sabre@nondot.org>2003-12-12 07:12:02 +0000
commit993bdcec009bb833c501b1e61707cd7030068698 (patch)
tree24745316c880d80692b2fa2854bed621bd24d0eb /lib/ExecutionEngine/JIT/VM.h
parent65b05ce02229b8e0cc270e4b4d3f1dd612300519 (diff)
downloadexternal_llvm-993bdcec009bb833c501b1e61707cd7030068698.zip
external_llvm-993bdcec009bb833c501b1e61707cd7030068698.tar.gz
external_llvm-993bdcec009bb833c501b1e61707cd7030068698.tar.bz2
Implement the ExecutionEngine::getPointerToFunctionOrStub by forwarding the
request on to the TargetMachine if it supports the getJITStubForFunction method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/VM.h')
-rw-r--r--lib/ExecutionEngine/JIT/VM.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/VM.h b/lib/ExecutionEngine/JIT/VM.h
index 9a17c96..dc82067 100644
--- a/lib/ExecutionEngine/JIT/VM.h
+++ b/lib/ExecutionEngine/JIT/VM.h
@@ -66,6 +66,12 @@ public:
///
void *getPointerToFunction(Function *F);
+ /// getPointerToFunctionOrStub - If the specified function has been
+ /// code-gen'd, return a pointer to the function. If not, compile it, or use
+ /// a stub to implement lazy compilation if available.
+ ///
+ void *getPointerToFunctionOrStub(Function *F);
+
/// recompileAndRelinkFunction - This method is used to force a function
/// which has already been compiled, to be compiled again, possibly
/// after it has been modified. Then the entry to the old copy is overwritten