LLVM  3.7.0
Public Member Functions | List of all members
llvm::orc::LambdaResolver< ExternalLookupFtorT, DylibLookupFtorT > Class Template Reference

#include <LambdaResolver.h>

Inheritance diagram for llvm::orc::LambdaResolver< ExternalLookupFtorT, DylibLookupFtorT >:
[legend]
Collaboration diagram for llvm::orc::LambdaResolver< ExternalLookupFtorT, DylibLookupFtorT >:
[legend]

Public Member Functions

 LambdaResolver (ExternalLookupFtorT ExternalLookupFtor, DylibLookupFtorT DylibLookupFtor)
 
RuntimeDyld::SymbolInfo findSymbol (const std::string &Name) final
 This method returns the address of the specified function or variable. More...
 
RuntimeDyld::SymbolInfo findSymbolInLogicalDylib (const std::string &Name) final
 This method returns the address of the specified symbol if it exists within the logical dynamic library represented by this RTDyldMemoryManager. More...
 
- Public Member Functions inherited from llvm::RuntimeDyld::SymbolResolver
virtual ~SymbolResolver ()
 

Detailed Description

template<typename ExternalLookupFtorT, typename DylibLookupFtorT>
class llvm::orc::LambdaResolver< ExternalLookupFtorT, DylibLookupFtorT >

Definition at line 27 of file LambdaResolver.h.

Constructor & Destructor Documentation

template<typename ExternalLookupFtorT , typename DylibLookupFtorT >
llvm::orc::LambdaResolver< ExternalLookupFtorT, DylibLookupFtorT >::LambdaResolver ( ExternalLookupFtorT  ExternalLookupFtor,
DylibLookupFtorT  DylibLookupFtor 
)
inline

Definition at line 30 of file LambdaResolver.h.

Member Function Documentation

template<typename ExternalLookupFtorT , typename DylibLookupFtorT >
RuntimeDyld::SymbolInfo llvm::orc::LambdaResolver< ExternalLookupFtorT, DylibLookupFtorT >::findSymbol ( const std::string &  Name)
inlinefinalvirtual

This method returns the address of the specified function or variable.

It is used to resolve symbols during module linking.

If the returned symbol's address is equal to ~0ULL then RuntimeDyld will skip all relocations for that symbol, and the client will be responsible for handling them manually.

Implements llvm::RuntimeDyld::SymbolResolver.

Definition at line 35 of file LambdaResolver.h.

template<typename ExternalLookupFtorT , typename DylibLookupFtorT >
RuntimeDyld::SymbolInfo llvm::orc::LambdaResolver< ExternalLookupFtorT, DylibLookupFtorT >::findSymbolInLogicalDylib ( const std::string &  Name)
inlinefinalvirtual

This method returns the address of the specified symbol if it exists within the logical dynamic library represented by this RTDyldMemoryManager.

Unlike getSymbolAddress, queries through this interface should return addresses for hidden symbols.

This is of particular importance for the Orc JIT APIs, which support lazy compilation by breaking up modules: Each of those broken out modules must be able to resolve hidden symbols provided by the others. Clients writing memory managers for MCJIT can usually ignore this method.

This method will be queried by RuntimeDyld when checking for previous definitions of common symbols. It will not be queried by default when resolving external symbols (this minimises the link-time overhead for MCJIT clients who don't care about Orc features). If you are writing a RTDyldMemoryManager for Orc and want "external" symbol resolution to search the logical dylib, you should override your getSymbolAddress method call this method directly.

Implements llvm::RuntimeDyld::SymbolResolver.

Definition at line 40 of file LambdaResolver.h.


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