summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter
diff options
context:
space:
mode:
authorDanil Malyshev <dmalyshev@accesssoftek.com>2012-01-05 21:16:14 +0000
committerDanil Malyshev <dmalyshev@accesssoftek.com>2012-01-05 21:16:14 +0000
commit45a93d6eb4c55876e94f91b471657f23fe2149aa (patch)
tree796110ec543824ee4a39160c0c0d28960ddfdbc4 /lib/ExecutionEngine/Interpreter
parent6e9b5eb51bb623995c90295d265a7682277653a1 (diff)
downloadllvm-45a93d6eb4c55876e94f91b471657f23fe2149aa.tar.gz
llvm-45a93d6eb4c55876e94f91b471657f23fe2149aa.tar.bz2
llvm-45a93d6eb4c55876e94f91b471657f23fe2149aa.tar.xz
A small re-factored JIT/MCJIT::getPointerToNamedFunction(), so it could be called with the base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter')
-rw-r--r--lib/ExecutionEngine/Interpreter/Interpreter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h
index ee2b4596f3..7c8e71e14f 100644
--- a/lib/ExecutionEngine/Interpreter/Interpreter.h
+++ b/lib/ExecutionEngine/Interpreter/Interpreter.h
@@ -115,6 +115,12 @@ public:
virtual GenericValue runFunction(Function *F,
const std::vector<GenericValue> &ArgValues);
+ virtual void *getPointerToNamedFunction(const std::string &Name,
+ bool AbortOnFailure = true) {
+ // FIXME: not implemented.
+ return 0;
+ };
+
/// recompileAndRelinkFunction - For the interpreter, functions are always
/// up-to-date.
///