ΒΆLLVMErrorRef LLVMOrcObjectLayerAddObjectFile(
    LLVMOrcObjectLayerRef ObjLayer,
    LLVMOrcJITDylibRef JD,
    LLVMMemoryBufferRef ObjBuffer)

Description

Add an object to an ObjectLayer to the given JITDylib. Adds a buffer representing an object file to the given JITDylib using the given ObjectLayer instance. This operation transfers ownership of the buffer to the ObjectLayer instance. The buffer should not be disposed of or referenced once this function returns. Resources associated with the given object will be tracked by the given JITDylib's default ResourceTracker.

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

Parameters

LLVMOrcObjectLayerRef ObjLayer
LLVMOrcJITDylibRef JD
LLVMMemoryBufferRef ObjBuffer