diff options
author | Danil Malyshev <dmalyshev@accesssoftek.com> | 2012-01-05 21:16:14 +0000 |
---|---|---|
committer | Danil Malyshev <dmalyshev@accesssoftek.com> | 2012-01-05 21:16:14 +0000 |
commit | 45a93d6eb4c55876e94f91b471657f23fe2149aa (patch) | |
tree | 796110ec543824ee4a39160c0c0d28960ddfdbc4 /include/llvm/ExecutionEngine | |
parent | 6e9b5eb51bb623995c90295d265a7682277653a1 (diff) | |
download | external_llvm-45a93d6eb4c55876e94f91b471657f23fe2149aa.zip external_llvm-45a93d6eb4c55876e94f91b471657f23fe2149aa.tar.gz external_llvm-45a93d6eb4c55876e94f91b471657f23fe2149aa.tar.bz2 |
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 'include/llvm/ExecutionEngine')
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index e89fd2e..9f77ebe 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -228,6 +228,17 @@ public: virtual GenericValue runFunction(Function *F, const std::vector<GenericValue> &ArgValues) = 0; + /// getPointerToNamedFunction - This method returns the address of the + /// specified function by using the dlsym function call. As such it is only + /// useful for resolving library symbols, not code generated symbols. + /// + /// If AbortOnFailure is false and no function with the given name is + /// found, this function silently returns a null pointer. Otherwise, + /// it prints a message to stderr and aborts. + /// + virtual void *getPointerToNamedFunction(const std::string &Name, + bool AbortOnFailure = true) = 0; + /// runStaticConstructorsDestructors - This method is used to execute all of /// the static constructors or destructors for a program. /// |