Remove sink arguments from compile_and_emit
The data can be accessed after the fact using context.mach_compile_result
This commit is contained in:
@@ -554,8 +554,6 @@ pub trait Module {
|
||||
&mut self,
|
||||
func: FuncId,
|
||||
ctx: &mut Context,
|
||||
trap_sink: &mut dyn binemit::TrapSink,
|
||||
stack_map_sink: &mut dyn binemit::StackMapSink,
|
||||
) -> ModuleResult<ModuleCompiledFunction>;
|
||||
|
||||
/// Define a function, taking the function body from the given `bytes`.
|
||||
@@ -656,10 +654,8 @@ impl<M: Module> Module for &mut M {
|
||||
&mut self,
|
||||
func: FuncId,
|
||||
ctx: &mut Context,
|
||||
trap_sink: &mut dyn binemit::TrapSink,
|
||||
stack_map_sink: &mut dyn binemit::StackMapSink,
|
||||
) -> ModuleResult<ModuleCompiledFunction> {
|
||||
(**self).define_function(func, ctx, trap_sink, stack_map_sink)
|
||||
(**self).define_function(func, ctx)
|
||||
}
|
||||
|
||||
fn define_function_bytes(
|
||||
|
||||
Reference in New Issue
Block a user