mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 14:36:12 +00:00
Honour addGlobalMapping() in the interpreter, if it was used to add mappings for
external Functions (the JIT does honour this). llvm-svn: 99885
This commit is contained in:
parent
df7c52143e
commit
6509d58fd5
@ -265,6 +265,7 @@ GenericValue Interpreter::callExternalFunction(Function *F,
|
||||
if (RF == RawFunctions->end()) {
|
||||
RawFn = (RawFunc)(intptr_t)
|
||||
sys::DynamicLibrary::SearchForAddressOfSymbol(F->getName());
|
||||
RawFn = (RawFunc)(intptr_t)getPointerToGlobalIfAvailable(F);
|
||||
if (RawFn != 0)
|
||||
RawFunctions->insert(std::make_pair(F, RawFn)); // Cache for later
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user