15using namespace object;
19 auto Obj = std::make_unique<Object>();
22 std::vector<Section> Sections;
26 Obj->Sections.push_back({
static_cast<uint8_t
>(WS.
Type),
30 Section &ReaderSec = Obj->Sections.back();
35 return std::move(Obj);
Tagged union holding either a T or a Error.
Expected< std::unique_ptr< Object > > create() const
section_iterator_range sections() const
This is a value type class that represents a single section in the list of sections in the object fil...
bool isRelocatableObject() const override
True if this is a relocatable object (.o/.obj).
const WasmSection & getWasmSection(const SectionRef &Section) const
const wasm::WasmObjectHeader & getHeader() const
uint32_t getNumSections() const
llvm::StringRef sectionTypeToString(uint32_t type)
This is an optimization pass for GlobalISel generic memory operations.
ArrayRef< uint8_t > Content
std::optional< uint8_t > HeaderSecSizeEncodingLen