Don't return CodeInfo from Context::compile_and_emit
It is already available through ctx.mach_compile_result and rarely needed.
This commit is contained in:
@@ -78,9 +78,10 @@ fn handle_module(options: &Options, path: &Path, name: &str, fisa: FlagsOrIsa) -
|
||||
let mut mem = vec![];
|
||||
|
||||
// Compile and encode the result to machine code.
|
||||
let code_info = context
|
||||
context
|
||||
.compile_and_emit(isa, &mut mem, &mut relocs, &mut traps, &mut stack_maps)
|
||||
.map_err(|err| anyhow::anyhow!("{}", pretty_error(&context.func, err)))?;
|
||||
let code_info = context.mach_compile_result.as_ref().unwrap().code_info();
|
||||
|
||||
if options.print {
|
||||
println!("{}", context.func.display());
|
||||
|
||||
Reference in New Issue
Block a user