LLVM: lib/ObjCopy/wasm/WasmObject.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9#ifndef LLVM_LIB_OBJCOPY_WASM_WASMOBJECT_H
10#define LLVM_LIB_OBJCOPY_WASM_WASMOBJECT_H
11
16#include
17
18namespace llvm {
20namespace wasm {
21
30
33
36
38 std::unique_ptr &&Content);
40
41private:
42 std::vector<std::unique_ptr> OwnedContents;
43};
44
45}
46}
47}
48
49#endif
ReachingDefInfo 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.
Definition WasmObject.h:31
std::vector< Section > Sections
Definition WasmObject.h:34
llvm::wasm::WasmObjectHeader Header
Definition WasmObject.h:32
bool isRelocatableObject
Definition WasmObject.h:35
void addSectionWithOwnedContents(Section NewSection, std::unique_ptr< MemoryBuffer > &&Content)
void removeSections(function_ref< bool(const Section &)> ToRemove)
Definition WasmObject.h:22
uint8_t SectionType
Definition WasmObject.h:25
ArrayRef< uint8_t > Contents
Definition WasmObject.h:28
std::optional< uint8_t > HeaderSecSizeEncodingLen
Definition WasmObject.h:26
StringRef Name
Definition WasmObject.h:27