ΒΆvoid LLVMOrcMaterializationResponsibilityAddDependencies(
    LLVMOrcMaterializationResponsibilityRef MR,
    LLVMOrcSymbolStringPoolEntryRef Name,
    LLVMOrcCDependenceMapPairs Dependencies,
    size_t NumPairs)

Description

Adds dependencies to a symbol that the MaterializationResponsibility is responsible for. This function takes ownership of Dependencies struct. The Names array have been retained for this function. This allows the following pattern... LLVMOrcSymbolStringPoolEntryRef Names[] = {...}; LLVMOrcCDependenceMapPair Dependence = {JD, {Names, sizeof(Names)}} LLVMOrcMaterializationResponsibilityAddDependencies(JD, Name, &Dependence , 1); ... without requiring cleanup of the elements of the Names array afterwards. The client is still responsible for deleting the Dependencies.Names array itself.

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

Parameters

LLVMOrcMaterializationResponsibilityRef MR
LLVMOrcSymbolStringPoolEntryRef Name
LLVMOrcCDependenceMapPairs Dependencies
size_t NumPairs