|
LLVM 23.0.0git
|
Public Member Functions | |
| InProcessDylibManager (char GlobalManglingPrefix) | |
| Expected< tpctypes::DylibHandle > | loadDylib (const char *DylibPath) override |
| Load the dynamic library at the given path and return a handle to it. | |
| void | lookupSymbolsAsync (ArrayRef< LookupRequest > Request, DylibManager::SymbolLookupCompleteFn Complete) override |
| Search for symbols in the target process. | |
| Public Member Functions inherited from llvm::orc::DylibManager | |
| virtual | ~DylibManager () |
| Expected< std::vector< tpctypes::LookupResult > > | lookupSymbols (ArrayRef< LookupRequest > Request) |
| Search for symbols in the target process. | |
Additional Inherited Members | |
| Public Types inherited from llvm::orc::DylibManager | |
| using | SymbolLookupCompleteFn |
Definition at line 24 of file SelfExecutorProcessControl.cpp.
| llvm::orc::SelfExecutorProcessControl::InProcessDylibManager::InProcessDylibManager | ( | char | GlobalManglingPrefix | ) |
Definition at line 155 of file SelfExecutorProcessControl.cpp.
|
overridevirtual |
Load the dynamic library at the given path and return a handle to it.
If LibraryPath is null this function will return the global handle for the target process.
Implements llvm::orc::DylibManager.
Definition at line 160 of file SelfExecutorProcessControl.cpp.
References llvm::orc::ExecutorAddr::fromPtr(), llvm::sys::DynamicLibrary::getPermanentLibrary(), llvm::inconvertibleErrorCode(), and llvm::make_error().
|
overridevirtual |
Search for symbols in the target process.
The result of the lookup is a 2-dimensional array of target addresses that correspond to the lookup order. If a required symbol is not found then this method will return an error. If a weakly referenced symbol is not found then it be assigned a '0' value.
Implements llvm::orc::DylibManager.
Definition at line 169 of file SelfExecutorProcessControl.cpp.
References llvm::JITSymbolFlags::Exported, llvm::orc::ExecutorAddr::fromPtr(), llvm::sys::DynamicLibrary::getAddressOfSymbol(), and llvm::orc::RequiredSymbol.