llvm::object::ObjectFile::createWasmObjectFile

Create a WebAssembly ObjectFile from Object.

Synopsis

Declared in <llvm/Object/ObjectFile.h>

static
Expected<std::unique_ptr<WasmObjectFile>>
createWasmObjectFile(MemoryBufferRef Object);

Return Value

A unique_ptr to a WasmObjectFile, or an error on failure.

Parameters

NameDescription
ObjectMemory buffer holding a Wasm object.