wasmer_compiler::object

Function emit_compilation

Source
pub fn emit_compilation(
    obj: &mut Object<'_>,
    compilation: Compilation,
    symbol_registry: &impl SymbolRegistry,
    triple: &Triple,
) -> Result<(), ObjectError>
Expand description

Emit the compilation result into an existing object.

ยงUsage


let mut object = get_object_for_target(&triple)?;
emit_compilation(&mut object, compilation, &symbol_registry, &triple)?;