mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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:
parent
ab8ec0a26c
commit
54227f6752
@ -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
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user