15 #ifndef LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H
16 #define LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H
25 template <
typename DylibLookupFtorT,
typename ExternalLookupFtorT>
30 ExternalLookupFtorT ExternalLookupFtor)
31 : DylibLookupFtor(DylibLookupFtor),
32 ExternalLookupFtor(ExternalLookupFtor) {}
35 return DylibLookupFtor(
Name);
39 return ExternalLookupFtor(
Name);
43 DylibLookupFtorT DylibLookupFtor;
44 ExternalLookupFtorT ExternalLookupFtor;
47 template <
typename DylibLookupFtorT,
48 typename ExternalLookupFtorT>
49 std::unique_ptr<LambdaResolver<DylibLookupFtorT, ExternalLookupFtorT>>
51 ExternalLookupFtorT ExternalLookupFtor) {
53 return make_unique<LR>(std::move(DylibLookupFtor),
54 std::move(ExternalLookupFtor));
60 #endif // LLVM_EXECUTIONENGINE_ORC_LAMBDARESOLVER_H
Represents a symbol in the JIT.
std::unique_ptr< LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT > > createLambdaResolver(DylibLookupFtorT DylibLookupFtor, ExternalLookupFtorT ExternalLookupFtor)
LambdaResolver(DylibLookupFtorT DylibLookupFtor, ExternalLookupFtorT ExternalLookupFtor)
JITSymbol findSymbolInLogicalDylib(const std::string &Name) final
This method returns the address of the specified symbol if it exists within the logical dynamic libra...
JITSymbol findSymbol(const std::string &Name) final
This method returns the address of the specified function or variable.