9#ifndef LLVM_LIB_OBJCOPY_WASM_WASMOBJECT_H
10#define LLVM_LIB_OBJCOPY_WASM_WASMOBJECT_H
38 std::unique_ptr<MemoryBuffer> &&
Content);
42 std::vector<std::unique_ptr<MemoryBuffer>> OwnedContents;
ReachingDefAnalysis InstSet & ToRemove
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
StringRef - Represent a constant reference to a string, i.e.
An efficient, type-erasing, non-owning reference to a callable.
This is an optimization pass for GlobalISel generic memory operations.
std::vector< Section > Sections
llvm::wasm::WasmObjectHeader Header
void addSectionWithOwnedContents(Section NewSection, std::unique_ptr< MemoryBuffer > &&Content)
void removeSections(function_ref< bool(const Section &)> ToRemove)
ArrayRef< uint8_t > Contents
std::optional< uint8_t > HeaderSecSizeEncodingLen