Rename define_function to define_function_with_control_plane (#6165)
And add a define_function convenience function which uses a default control plane.
This commit is contained in:
@@ -57,9 +57,7 @@ fn define_simple_function(module: &mut JITModule) -> FuncId {
|
||||
bcx.ins().return_(&[]);
|
||||
}
|
||||
|
||||
module
|
||||
.define_function(func_id, &mut ctx, &mut Default::default())
|
||||
.unwrap();
|
||||
module.define_function(func_id, &mut ctx).unwrap();
|
||||
|
||||
func_id
|
||||
}
|
||||
@@ -210,7 +208,7 @@ fn libcall_function() {
|
||||
}
|
||||
|
||||
module
|
||||
.define_function(func_id, &mut ctx, &mut Default::default())
|
||||
.define_function_with_control_plane(func_id, &mut ctx, &mut Default::default())
|
||||
.unwrap();
|
||||
|
||||
module.finalize_definitions().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user