LLVM  15.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::objcopy::wasm::Object Struct Reference

#include "ObjCopy/wasm/WasmObject.h"

Collaboration diagram for llvm::objcopy::wasm::Object:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

llvm::wasm::WasmObjectHeader Header
 
std::vector< SectionSections
 

Detailed Description

Definition at line 30 of file WasmObject.h.

Member Function Documentation

◆ addSectionWithOwnedContents()

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

Definition at line 21 of file WasmObject.cpp.

References Content, and move.

Referenced by llvm::objcopy::wasm::handleArgs().

◆ removeSections()

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

Definition at line 27 of file WasmObject.cpp.

References llvm::erase_if(), and ToRemove.

Referenced by llvm::objcopy::wasm::removeSections().

Member Data Documentation

◆ Header

llvm::wasm::WasmObjectHeader llvm::objcopy::wasm::Object::Header

Definition at line 31 of file WasmObject.h.

◆ Sections

std::vector<Section> llvm::objcopy::wasm::Object::Sections

Definition at line 33 of file WasmObject.h.

Referenced by llvm::objcopy::wasm::dumpSectionToFile().


The documentation for this struct was generated from the following files: