13#ifndef LLVM_EXECUTIONENGINE_ORC_DYLIBMANAGER_H
14#define LLVM_EXECUTIONENGINE_ORC_DYLIBMANAGER_H
44 std::promise<MSVCPExpected<tpctypes::LookupResult>> RP;
45 auto RF = RP.get_future();
47 [&RP](
auto Result) { RP.set_value(std::move(
Result)); });
Tagged union holding either a T or a Error.
Expected< tpctypes::LookupResult > lookupSymbols(tpctypes::DylibHandle H, const SymbolLookupSet &Symbols)
Search for symbols in the target process.
unique_function< void(Expected< tpctypes::LookupResult >)> SymbolLookupCompleteFn
virtual Expected< tpctypes::DylibHandle > loadDylib(const char *DylibPath)=0
Load the dynamic library at the given path and return a handle to it.
virtual void lookupSymbolsAsync(tpctypes::DylibHandle H, const SymbolLookupSet &Symbols, SymbolLookupCompleteFn F)=0
Search for symbols in the target process.
A set of symbols to look up, each associated with a SymbolLookupFlags value.
unique_function is a type-erasing functor similar to std::function.
ExecutorAddr DylibHandle
A handle used to represent a loaded dylib in the target process.