Function cton_wasm::translate_module [] [src]

pub fn translate_module<'data>(
    data: &'data [u8],
    environ: &mut ModuleEnvironment<'data>
) -> Result<(), String>

Translate a sequence of bytes forming a valid Wasm binary into a list of valid Cretonne IL Function. Returns the functions and also the mappings for imported functions and signature between the indexes in the wasm module and the indexes inside each functions.