15 #ifndef LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H
16 #define LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H
26 template <
typename ExternalLookupFtorT,
typename DylibLookupFtorT>
31 DylibLookupFtorT DylibLookupFtor)
32 : ExternalLookupFtor(ExternalLookupFtor),
33 DylibLookupFtor(DylibLookupFtor) {}
36 return ExternalLookupFtor(
Name);
41 return DylibLookupFtor(
Name);
45 ExternalLookupFtorT ExternalLookupFtor;
46 DylibLookupFtorT DylibLookupFtor;
49 template <
typename ExternalLookupFtorT,
50 typename DylibLookupFtorT>
51 std::unique_ptr<LambdaResolver<ExternalLookupFtorT, DylibLookupFtorT>>
53 DylibLookupFtorT DylibLookupFtor) {
55 return make_unique<LR>(std::move(ExternalLookupFtor),
56 std::move(DylibLookupFtor));
62 #endif // LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H
RuntimeDyld::SymbolInfo findSymbol(const std::string &Name) final
This method returns the address of the specified function or variable.
RuntimeDyld::SymbolInfo findSymbolInLogicalDylib(const std::string &Name) final
This method returns the address of the specified symbol if it exists within the logical dynamic libra...
LambdaResolver(ExternalLookupFtorT ExternalLookupFtor, DylibLookupFtorT DylibLookupFtor)
std::unique_ptr< LambdaResolver< ExternalLookupFtorT, DylibLookupFtorT > > createLambdaResolver(ExternalLookupFtorT ExternalLookupFtor, DylibLookupFtorT DylibLookupFtor)
Information about a named symbol.