1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02: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:
Torok Edwin 2010-03-30 12:31:58 +00:00
parent df7c52143e
commit 6509d58fd5

View File

@ -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 {