aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-08 08:23:04 +0000
committerChris Lattner <sabre@nondot.org>2003-12-08 08:23:04 +0000
commite63fc8b46fb1c9627b1c84508e258070fe3567cf (patch)
treec75943213ba9fb8b66f54302b7392e9e5df55e09
parent38f0ebad9aff85786c1273cfb8aa1b4bd838100a (diff)
downloadexternal_llvm-e63fc8b46fb1c9627b1c84508e258070fe3567cf.zip
external_llvm-e63fc8b46fb1c9627b1c84508e258070fe3567cf.tar.gz
external_llvm-e63fc8b46fb1c9627b1c84508e258070fe3567cf.tar.bz2
implement method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10321 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index 465a08a..c6aa896 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -106,6 +106,13 @@ public:
virtual GenericValue run(Function *F,
const std::vector<GenericValue> &ArgValues);
+ /// recompileAndRelinkFunction - For the interpreter, functions are always
+ /// up-to-date.
+ ///
+ virtual void *recompileAndRelinkFunction(Function *F) {
+ return getPointerToFunction(F);
+ }
+
// Methods used to execute code:
// Place a call on the stack
void callFunction(Function *F, const std::vector<GenericValue> &ArgVals);