ΒΆLLVMOrcMaterializationUnitRef
LLVMOrcLazyReexports(
    LLVMOrcLazyCallThroughManagerRef LCTM,
    LLVMOrcIndirectStubsManagerRef ISM,
    LLVMOrcJITDylibRef SourceRef,
    LLVMOrcCSymbolAliasMapPairs CallableAliases,
    size_t NumPairs)

Description

Create a MaterializationUnit to define lazy re-expots. These are callable entry points that call through to the given symbols. This function takes ownership of the CallableAliases array. The Name fields of the array elements are taken to have been retained for this function. This allows the following pattern... size_t NumPairs; LLVMOrcCSymbolAliasMapPairs CallableAliases; -- Build CallableAliases array -- LLVMOrcMaterializationUnitRef MU = LLVMOrcLazyReexports(LCTM, ISM, JD, CallableAliases, NumPairs); ... without requiring cleanup of the elements of the CallableAliases array afterwards. The client is still responsible for deleting the CallableAliases array itself. If a client wishes to reuse elements of the CallableAliases array after this call they must explicitly retain each of the elements for themselves.

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

Parameters

LLVMOrcLazyCallThroughManagerRef LCTM
LLVMOrcIndirectStubsManagerRef ISM
LLVMOrcJITDylibRef SourceRef
LLVMOrcCSymbolAliasMapPairs CallableAliases
size_t NumPairs