diff options
author | Torok Edwin <edwintorok@gmail.com> | 2010-03-30 12:31:58 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2010-03-30 12:31:58 +0000 |
commit | 61b798a5ac24f3b9cdf4506a2252cefe2293f7df (patch) | |
tree | fcdedafc722898f34e72247b417ce5e6db766075 /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | 9e649c3cfe24104f621e75ef644a95b2be3fbdcd (diff) | |
download | bcm5719-llvm-61b798a5ac24f3b9cdf4506a2252cefe2293f7df.tar.gz bcm5719-llvm-61b798a5ac24f3b9cdf4506a2252cefe2293f7df.zip |
Honour addGlobalMapping() in the interpreter, if it was used to add mappings for
external Functions (the JIT does honour this).
llvm-svn: 99885
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 7b061d3ac34..9b3f25dc926 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -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 { |