LLVM 23.0.0git
llvm::orc::SelfExecutorProcessControl::InProcessDylibManager Class Reference
Inheritance diagram for llvm::orc::SelfExecutorProcessControl::InProcessDylibManager:
[legend]

Public Member Functions

 InProcessDylibManager (char GlobalManglingPrefix)
Expected< tpctypes::DylibHandleloadDylib (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

Detailed Description

Definition at line 24 of file SelfExecutorProcessControl.cpp.

Constructor & Destructor Documentation

◆ InProcessDylibManager()

llvm::orc::SelfExecutorProcessControl::InProcessDylibManager::InProcessDylibManager ( char GlobalManglingPrefix)

Definition at line 155 of file SelfExecutorProcessControl.cpp.

Member Function Documentation

◆ loadDylib()

Expected< tpctypes::DylibHandle > llvm::orc::SelfExecutorProcessControl::InProcessDylibManager::loadDylib ( const char * DylibPath)
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().

◆ lookupSymbolsAsync()

void llvm::orc::SelfExecutorProcessControl::InProcessDylibManager::lookupSymbolsAsync ( ArrayRef< LookupRequest > Request,
DylibManager::SymbolLookupCompleteFn F )
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.


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