Add C binding for ExecutionEngine::addGlobalMapping.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52523 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gordon Henriksen 2008-06-20 02:16:11 +00:00
parent ab8ec0a26c
commit 54227f6752
2 changed files with 8 additions and 0 deletions

View File

@ -91,6 +91,9 @@ int LLVMFindFunction(LLVMExecutionEngineRef EE, const char *Name,
LLVMTargetDataRef LLVMGetExecutionEngineTargetData(LLVMExecutionEngineRef EE);
void LLVMAddGlobalMapping(LLVMExecutionEngineRef EE, LLVMValueRef Global,
void* Addr);
#ifdef __cplusplus
}

View File

@ -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);
}