LLVM  7.0.0svn
Public Types | Public Member Functions | List of all members
llvm::orc::LegacyLookupFnResolver< LegacyLookupFn > Class Template Referencefinal

An ORC SymbolResolver implementation that uses a legacy findSymbol-like function to perform lookup;. More...

#include "llvm/ExecutionEngine/Orc/Legacy.h"

Inheritance diagram for llvm::orc::LegacyLookupFnResolver< LegacyLookupFn >:
Inheritance graph
[legend]
Collaboration diagram for llvm::orc::LegacyLookupFnResolver< LegacyLookupFn >:
Collaboration graph
[legend]

Public Types

using ErrorReporter = std::function< void(Error)>
 

Public Member Functions

 LegacyLookupFnResolver (LegacyLookupFn LegacyLookup, ErrorReporter ReportError)
 
SymbolNameSet lookupFlags (SymbolFlagsMap &Flags, const SymbolNameSet &Symbols) final
 Returns the flags for each symbol in Symbols that can be found, along with the set of symbol that could not be found. More...
 
SymbolNameSet lookup (std::shared_ptr< AsynchronousSymbolQuery > Query, SymbolNameSet Symbols) final
 For each symbol in Symbols that can be found, assigns that symbols value in Query. More...
 
- Public Member Functions inherited from llvm::orc::SymbolResolver
virtual ~SymbolResolver ()=default
 

Detailed Description

template<typename LegacyLookupFn>
class llvm::orc::LegacyLookupFnResolver< LegacyLookupFn >

An ORC SymbolResolver implementation that uses a legacy findSymbol-like function to perform lookup;.

Definition at line 98 of file Legacy.h.

Member Typedef Documentation

◆ ErrorReporter

template<typename LegacyLookupFn >
using llvm::orc::LegacyLookupFnResolver< LegacyLookupFn >::ErrorReporter = std::function<void(Error)>

Definition at line 100 of file Legacy.h.

Constructor & Destructor Documentation

◆ LegacyLookupFnResolver()

template<typename LegacyLookupFn >
llvm::orc::LegacyLookupFnResolver< LegacyLookupFn >::LegacyLookupFnResolver ( LegacyLookupFn  LegacyLookup,
ErrorReporter  ReportError 
)
inline

Definition at line 102 of file Legacy.h.

Member Function Documentation

◆ lookup()

template<typename LegacyLookupFn >
SymbolNameSet llvm::orc::LegacyLookupFnResolver< LegacyLookupFn >::lookup ( std::shared_ptr< AsynchronousSymbolQuery Query,
SymbolNameSet  Symbols 
)
inlinefinalvirtual

For each symbol in Symbols that can be found, assigns that symbols value in Query.

Returns the set of symbols that could not be found.

Implements llvm::orc::SymbolResolver.

Definition at line 117 of file Legacy.h.

References llvm::orc::lookupWithLegacyFn(), Query(), and ReportError().

◆ lookupFlags()

template<typename LegacyLookupFn >
SymbolNameSet llvm::orc::LegacyLookupFnResolver< LegacyLookupFn >::lookupFlags ( SymbolFlagsMap Flags,
const SymbolNameSet Symbols 
)
inlinefinalvirtual

Returns the flags for each symbol in Symbols that can be found, along with the set of symbol that could not be found.

Implements llvm::orc::SymbolResolver.

Definition at line 106 of file Legacy.h.

References llvm::orc::lookupFlagsWithLegacyFn(), and ReportError().


The documentation for this class was generated from the following file: