class LinkingSymbolResolver
Declaration
class LinkingSymbolResolver : public LegacyJITSymbolResolver { /* full declaration omitted */ };
Description
Legacy symbol resolution interface.
Declared at: llvm/lib/ExecutionEngine/MCJIT/MCJIT.h:27
Inherits from: LegacyJITSymbolResolver
Member Variables
- private llvm::MCJIT& ParentEngine
- private std::shared_ptr<LegacyJITSymbolResolver> ClientResolver
Method Overview
- public LinkingSymbolResolver(llvm::MCJIT & Parent, std::shared_ptr<LegacyJITSymbolResolver> Resolver)
- private void anchor()
- public llvm::JITSymbol findSymbol(const std::string & Name)
- public llvm::JITSymbol findSymbolInLogicalDylib(const std::string & Name)
Inherited from LegacyJITSymbolResolver:
Inherited from JITSymbolResolver:
Methods
¶LinkingSymbolResolver(
llvm::MCJIT& Parent,
std::shared_ptr<LegacyJITSymbolResolver>
Resolver)
LinkingSymbolResolver(
llvm::MCJIT& Parent,
std::shared_ptr<LegacyJITSymbolResolver>
Resolver)
Declared at: llvm/lib/ExecutionEngine/MCJIT/MCJIT.h:29
Parameters
- llvm::MCJIT& Parent
- std::shared_ptr<LegacyJITSymbolResolver> Resolver
¶void anchor()
void anchor()
Declared at: llvm/lib/ExecutionEngine/MCJIT/MCJIT.h:43
¶llvm::JITSymbol findSymbol(
const std::string& Name)
llvm::JITSymbol findSymbol(
const std::string& Name)
Description
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.
Declared at: llvm/lib/ExecutionEngine/MCJIT/MCJIT.h:33
Parameters
- const std::string& Name
¶llvm::JITSymbol findSymbolInLogicalDylib(
const std::string& Name)
llvm::JITSymbol findSymbolInLogicalDylib(
const std::string& Name)
Description
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.
Declared at: llvm/lib/ExecutionEngine/MCJIT/MCJIT.h:36
Parameters
- const std::string& Name