struct Object

Declaration

struct Object { /* full declaration omitted */ };

Declared at: llvm/lib/ObjCopy/wasm/WasmObject.h:30

Member Variables

public llvm::wasm::WasmObjectHeader Header
public std::vector<Section> Sections
private std::vector<std::unique_ptr<MemoryBuffer>> OwnedContents

Method Overview

  • public void addSectionWithOwnedContents(llvm::objcopy::wasm::Section NewSection, std::unique_ptr<MemoryBuffer> && Content)
  • public void removeSections(function_ref<bool (const llvm::objcopy::wasm::Section &)> ToRemove)

Methods

void addSectionWithOwnedContents(
    llvm::objcopy::wasm::Section NewSection,
    std::unique_ptr<MemoryBuffer>&& Content)

Declared at: llvm/lib/ObjCopy/wasm/WasmObject.h:35

Parameters

llvm::objcopy::wasm::Section NewSection
std::unique_ptr<MemoryBuffer>&& Content

void removeSections(
    function_ref<
        bool(const llvm::objcopy::wasm::Section&)>
        ToRemove)

Declared at: llvm/lib/ObjCopy/wasm/WasmObject.h:37

Parameters

function_ref<bool( const llvm::objcopy::wasm::Section&)> ToRemove