mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user