ΒΆLLVMErrorRef
LLVMOrcCreateDynamicLibrarySearchGeneratorForProcess(
    LLVMOrcDefinitionGeneratorRef* Result,
    char GlobalPrefx,
    LLVMOrcSymbolPredicate Filter,
    void* FilterCtx)

Description

Get a DynamicLibrarySearchGenerator that will reflect process symbols into the JITDylib. On success the resulting generator is owned by the client. Ownership is typically transferred by adding the instance to a JITDylib using LLVMOrcJITDylibAddGenerator, The GlobalPrefix argument specifies the character that appears on the front of linker-mangled symbols for the target platform (e.g. '_' on MachO). If non-null, this character will be stripped from the start of all symbol strings before passing the remaining substring to dlsym. The optional Filter and Ctx arguments can be used to supply a symbol name filter: Only symbols for which the filter returns true will be visible to JIT'd code. If the Filter argument is null then all process symbols will be visible to JIT'd code. Note that the symbol name passed to the Filter function is the full mangled symbol: The client is responsible for stripping the global prefix if present.

Declared at: llvm/include/llvm-c/Orc.h:1026

Parameters

LLVMOrcDefinitionGeneratorRef* Result
char GlobalPrefx
LLVMOrcSymbolPredicate Filter
void* FilterCtx