Make cranelift happy

This commit is contained in:
Syrus
2020-05-04 21:34:38 -07:00
parent f68e5b1c7c
commit 8ccf7057fa
9 changed files with 35 additions and 101 deletions

View File

@ -101,7 +101,6 @@ impl Compiler for CraneliftCompiler {
);
context.func.name = get_func_name(func_index);
context.func.signature = signatures[module.functions[func_index]].clone();
context.func.collect_frame_layout_info();
// if generate_debug_info {
// context.func.collect_debug_info();
// }
@ -130,7 +129,7 @@ impl Compiler for CraneliftCompiler {
CompileError::Codegen(pretty_error(&context.func, Some(isa), error))
})?;
let unwind_info = compiled_function_unwind_info(isa, &context);
let unwind_info = compiled_function_unwind_info(isa, &context)?;
let address_map = get_function_address_map(&context, input, code_buf.len(), isa);