Limit the use of clone when handling Compilation object

This commit is contained in:
ptitSeb
2022-11-09 13:23:44 +01:00
parent b7c185b1a6
commit ecc0c9e547
6 changed files with 55 additions and 40 deletions

View File

@ -360,12 +360,12 @@ impl Compiler for LLVMCompiler {
.into_iter()
.collect::<PrimaryMap<_, _>>();
Ok(Compilation::new(
Ok(Compilation {
functions,
module_custom_sections,
custom_sections: module_custom_sections,
function_call_trampolines,
dynamic_function_trampolines,
dwarf,
))
debug: dwarf,
})
}
}