LLDB mainline
lldb_private::wasm::WasmGlobal Struct Reference

A global declared by the module itself. More...

#include <ObjectFileWasm.h>

Public Attributes

std::optional< uint32_t > size
 Size of the global's value type, which bounds what a read can produce.
std::optional< uint64_t > init_expr_value
 Value the global is initialized with, when the initializer is a constant.

Detailed Description

A global declared by the module itself.

Imported globals occupy the low indices of the same index space and have no entry here.

Definition at line 22 of file ObjectFileWasm.h.

Member Data Documentation

◆ init_expr_value

std::optional<uint64_t> lldb_private::wasm::WasmGlobal::init_expr_value

Value the global is initialized with, when the initializer is a constant.

Anything else has to be evaluated against module state the object file does not have.

Definition at line 30 of file ObjectFileWasm.h.

Referenced by ParseGlobals(), and lldb_private::wasm::ObjectFileWasm::ReadSectionData().

◆ size

std::optional<uint32_t> lldb_private::wasm::WasmGlobal::size

Size of the global's value type, which bounds what a read can produce.

Absent for a value type whose values cannot be read.

Definition at line 25 of file ObjectFileWasm.h.

Referenced by ParseGlobals(), and lldb_private::wasm::ObjectFileWasm::ReadSectionData().


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