13#ifndef LLVM_EXECUTIONENGINE_ORC_DYLIBMANAGER_H
14#define LLVM_EXECUTIONENGINE_ORC_DYLIBMANAGER_H
54 std::promise<MSVCPExpected<std::vector<tpctypes::LookupResult>>> RP;
55 auto RF = RP.get_future();
57 [&RP](
auto Result) { RP.set_value(std::move(
Result)); });
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Tagged union holding either a T or a Error.
virtual void lookupSymbolsAsync(ArrayRef< LookupRequest > Request, SymbolLookupCompleteFn F)=0
Search for symbols in the target process.
Expected< std::vector< tpctypes::LookupResult > > lookupSymbols(ArrayRef< LookupRequest > Request)
Search for symbols in the target process.
virtual Expected< tpctypes::DylibHandle > loadDylib(const char *DylibPath)=0
Load the dynamic library at the given path and return a handle to it.
unique_function< void(Expected< std::vector< tpctypes::LookupResult > >)> SymbolLookupCompleteFn
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.
tpctypes::DylibHandle Handle
const SymbolLookupSet & Symbols
LookupRequest(tpctypes::DylibHandle Handle, const SymbolLookupSet &Symbols)