diff options
author | Peter Zotov <whitequark@whitequark.org> | 2014-12-22 18:53:11 +0000 |
---|---|---|
committer | Peter Zotov <whitequark@whitequark.org> | 2014-12-22 18:53:11 +0000 |
commit | c433cd7bfa4e4ae575a791722b6533f4406c687e (patch) | |
tree | 5bdd4c2d351a416a6b6387c728b02e8d80a69402 /llvm/include/llvm-c | |
parent | b62ba516e7464a1b5af83cf63256ac5ea7df6481 (diff) | |
download | bcm5719-llvm-c433cd7bfa4e4ae575a791722b6533f4406c687e.tar.gz bcm5719-llvm-c433cd7bfa4e4ae575a791722b6533f4406c687e.zip |
[C API] Expose LLVMGetGlobalValueAddress and LLVMGetFunctionAddress.
Patch by Ramkumar Ramachandra <artagnon@gmail.com>
llvm-svn: 224720
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/ExecutionEngine.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/ExecutionEngine.h b/llvm/include/llvm-c/ExecutionEngine.h index f1f4cadec34..eb3ecabfa8a 100644 --- a/llvm/include/llvm-c/ExecutionEngine.h +++ b/llvm/include/llvm-c/ExecutionEngine.h @@ -170,6 +170,10 @@ void LLVMAddGlobalMapping(LLVMExecutionEngineRef EE, LLVMValueRef Global, void *LLVMGetPointerToGlobal(LLVMExecutionEngineRef EE, LLVMValueRef Global); +uint64_t LLVMGetGlobalValueAddress(LLVMExecutionEngineRef EE, const char *Name); + +uint64_t LLVMGetFunctionAddress(LLVMExecutionEngineRef EE, const char *Name); + /*===-- Operations on memory managers -------------------------------------===*/ typedef uint8_t *(*LLVMMemoryManagerAllocateCodeSectionCallback)( |