llvm::jitlink::createLinkGraphFromELFObject_riscv

Create a LinkGraph from an ELF/riscv relocatable object

Synopsis

Declared in <llvm/ExecutionEngine/JITLink/ELF_riscv.h>

Expected<std::unique_ptr<LinkGraph>>
createLinkGraphFromELFObject_riscv(
    MemoryBufferRef ObjectBuffer,
    std::shared_ptr<orc::SymbolStringPool> SSP);

Description

Note: The graph does not take ownership of the underlying buffer, nor copy its contents. The caller is responsible for ensuring that the object buffer outlives the graph.

Return Value

A LinkGraph for the object, or an error if parsing fails.

Parameters

NameDescription
ObjectBufferBuffer containing the ELF/riscv relocatable object.
SSPSymbol string pool used to intern symbol names in the graph.