wasm_encoder::reencode::utils

Function parse_global

source
pub fn parse_global<T: ?Sized + Reencode>(
    reencoder: &mut T,
    globals: &mut GlobalSection,
    global: Global<'_>,
) -> Result<(), Error<T::Error>>
Available on crate feature wasmparser only.
Expand description

Parses the single wasmparser::Global provided and adds it to the globals section.