diff options
author | Lang Hames <lhames@gmail.com> | 2018-07-20 22:22:19 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2018-07-20 22:22:19 +0000 |
commit | a48d1083537c545577153726ff98337a2a17efd7 (patch) | |
tree | cac9875ff82f56235c16b9bde05741c14463a9f8 /llvm/lib/ExecutionEngine/Orc/Legacy.cpp | |
parent | 7b04405cce80d3814938e154707c8fa77f62f74f (diff) | |
download | bcm5719-llvm-a48d1083537c545577153726ff98337a2a17efd7.tar.gz bcm5719-llvm-a48d1083537c545577153726ff98337a2a17efd7.zip |
Re-apply r337595 with fix for LLVM_ENABLE_THREADS=Off.
llvm-svn: 337626
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/Legacy.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/Legacy.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/Legacy.cpp b/llvm/lib/ExecutionEngine/Orc/Legacy.cpp index 6fde6898a16..22775ef14f8 100644 --- a/llvm/lib/ExecutionEngine/Orc/Legacy.cpp +++ b/llvm/lib/ExecutionEngine/Orc/Legacy.cpp @@ -29,8 +29,14 @@ JITSymbolResolverAdapter::lookup(const LookupSet &Symbols) { return R.lookup(std::move(Q), std::move(Unresolved)); }; - auto InternedResult = blockingLookup(ES, std::move(LookupFn), - std::move(InternedSymbols), false, MR); + auto RegisterDependencies = [&](const SymbolDependenceMap &Deps) { + if (MR) + MR->addDependencies(Deps); + }; + + auto InternedResult = + ES.legacyLookup(ES, std::move(LookupFn), std::move(InternedSymbols), + false, RegisterDependencies); if (!InternedResult) return InternedResult.takeError(); |