LLVM 20.0.0git
|
Definition generators can be attached to JITDylibs to generate new definitions for otherwise unresolved symbols during lookup. More...
#include "llvm/ExecutionEngine/Orc/Core.h"
Public Member Functions | |
virtual | ~DefinitionGenerator () |
virtual Error | tryToGenerate (LookupState &LS, LookupKind K, JITDylib &JD, JITDylibLookupFlags JDLookupFlags, const SymbolLookupSet &LookupSet)=0 |
DefinitionGenerators should override this method to insert new definitions into the parent JITDylib. | |
Friends | |
class | ExecutionSession |
Definition generators can be attached to JITDylibs to generate new definitions for otherwise unresolved symbols during lookup.
|
virtual |
Definition at line 658 of file Core.cpp.
References llvm::inconvertibleErrorCode(), and std::swap().
|
pure virtual |
DefinitionGenerators should override this method to insert new definitions into the parent JITDylib.
K specifies the kind of this lookup. JD specifies the target JITDylib being searched, and JDLookupFlags specifies whether the search should match against hidden symbols. Finally, Symbols describes the set of unresolved symbols and their associated lookup flags.
Implemented in llvm::orc::ReexportsGenerator, llvm::orc::CAPIDefinitionGenerator, llvm::orc::EPCDynamicLibrarySearchGenerator, llvm::orc::DynamicLibrarySearchGenerator, llvm::orc::StaticLibraryDefinitionGenerator, and llvm::orc::DLLImportDefinitionGenerator.
|
friend |