Add compile_function method to TargetIsa

This commit is contained in:
bjorn3
2022-01-04 19:36:49 +01:00
parent d50f27e8f9
commit 9eba87a6c8
3 changed files with 19 additions and 4 deletions

View File

@@ -167,8 +167,7 @@ impl Context {
self.remove_constant_phis(isa)?;
let backend = isa.get_mach_backend();
let result = backend.compile_function(&self.func, self.want_disasm)?;
let result = isa.compile_function(&self.func, self.want_disasm)?;
let info = result.code_info();
self.mach_compile_result = Some(result);
Ok(info)