diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-06-20 02:16:11 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-06-20 02:16:11 +0000 |
commit | 54227f6752befd3196e078b83e4c440ecaff2dd7 (patch) | |
tree | a50d0d7bd4ca15b91d48cb708e3b13923117e2a4 /lib/ExecutionEngine | |
parent | ab8ec0a26caa754f0376dbdede3a33ad84f23e21 (diff) | |
download | external_llvm-54227f6752befd3196e078b83e4c440ecaff2dd7.zip external_llvm-54227f6752befd3196e078b83e4c440ecaff2dd7.tar.gz external_llvm-54227f6752befd3196e078b83e4c440ecaff2dd7.tar.bz2 |
Add C binding for ExecutionEngine::addGlobalMapping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngineBindings.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngineBindings.cpp b/lib/ExecutionEngine/ExecutionEngineBindings.cpp index 00195f0..54340fb 100644 --- a/lib/ExecutionEngine/ExecutionEngineBindings.cpp +++ b/lib/ExecutionEngine/ExecutionEngineBindings.cpp @@ -192,3 +192,8 @@ int LLVMFindFunction(LLVMExecutionEngineRef EE, const char *Name, LLVMTargetDataRef LLVMGetExecutionEngineTargetData(LLVMExecutionEngineRef EE) { return wrap(unwrap(EE)->getTargetData()); } + +void LLVMAddGlobalMapping(LLVMExecutionEngineRef EE, LLVMValueRef Global, + void* Addr) { + unwrap(EE)->addGlobalMapping(unwrap<GlobalValue>(Global), Addr); +} |