mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
MCJIT: don't finalize modules on symbol lookup (workaround)
This is extremely slow yet unnecessary with manual finalization. In LLVM 6 this wasn't a problem.
This commit is contained in:
@@ -390,16 +390,12 @@ JITSymbol MCJIT::findSymbol(const std::string &Name,
|
||||
uint64_t MCJIT::getGlobalValueAddress(const std::string &Name) {
|
||||
MutexGuard locked(lock);
|
||||
uint64_t Result = getSymbolAddress(Name, false);
|
||||
if (Result != 0)
|
||||
finalizeLoadedModules();
|
||||
return Result;
|
||||
}
|
||||
|
||||
uint64_t MCJIT::getFunctionAddress(const std::string &Name) {
|
||||
MutexGuard locked(lock);
|
||||
uint64_t Result = getSymbolAddress(Name, true);
|
||||
if (Result != 0)
|
||||
finalizeLoadedModules();
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user