|
LLVM
4.0.0
|
Symbol resolution. More...
#include <JITSymbol.h>
Public Member Functions | |
| virtual | ~JITSymbolResolver ()=default |
| virtual JITSymbol | findSymbolInLogicalDylib (const std::string &Name)=0 |
| This method returns the address of the specified symbol if it exists within the logical dynamic library represented by this JITSymbolResolver. More... | |
| virtual JITSymbol | findSymbol (const std::string &Name)=0 |
| This method returns the address of the specified function or variable. More... | |
Symbol resolution.
Definition at line 165 of file JITSymbol.h.
|
virtualdefault |
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.
Implemented in llvm::RTDyldMemoryManager, llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >, llvm::LinkingSymbolResolver, and llvm::orc::NullResolver.
|
pure virtual |
This method returns the address of the specified symbol if it exists within the logical dynamic library represented by this JITSymbolResolver.
Unlike findSymbol, 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.
Implemented in llvm::RTDyldMemoryManager, llvm::LinkingSymbolResolver, llvm::orc::LambdaResolver< DylibLookupFtorT, ExternalLookupFtorT >, and llvm::orc::NullResolver.
1.8.6