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

@@ -52,6 +52,14 @@ impl TargetIsa for TargetIsaAdapter {
self.backend.isa_flags()
}
fn compile_function(
&self,
func: &Function,
want_disasm: bool,
) -> CodegenResult<MachCompileResult> {
self.backend.compile_function(func, want_disasm)
}
fn get_mach_backend(&self) -> &dyn MachBackend {
&*self.backend
}