Function wasmer_object::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
use wasmer_object::{get_object_for_target, emit_compilation};
let mut object = get_object_for_target(&triple)?;
emit_compilation(&mut object, compilation, &symbol_registry, &triple)?;