ΒΆLLVMOrcMaterializationUnitRef
LLVMOrcAbsoluteSymbols(
LLVMOrcCSymbolMapPairs Syms,
size_t NumPairs)
LLVMOrcMaterializationUnitRef
LLVMOrcAbsoluteSymbols(
LLVMOrcCSymbolMapPairs Syms,
size_t NumPairs)
Description
Create a MaterializationUnit to define the given symbols as pointing to the corresponding raw addresses. This function takes ownership of the elements of the Syms 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; LLVMOrcCSymbolMapPairs Sym; -- Build Syms array -- LLVMOrcMaterializationUnitRef MU = LLVMOrcAbsoluteSymbols(Syms, NumPairs); ... without requiring cleanup of the elements of the Sym array afterwards. The client is still responsible for deleting the Sym array itself. If a client wishes to reuse elements of the Sym array after this call they must explicitly retain each of the elements for themselves.
Declared at: llvm/include/llvm-c/Orc.h:683
Parameters
- LLVMOrcCSymbolMapPairs Syms
- size_t NumPairs