From 6acc3ec38633967065bf7978cab8c3b04140d031 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Wed, 10 May 2023 10:18:38 -0400 Subject: Rust API : Remove some unused type parameters (this should remove a little bit of codegen)...but will likely break custom BV plugins --- rust/src/callingconvention.rs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'rust/src/callingconvention.rs') diff --git a/rust/src/callingconvention.rs b/rust/src/callingconvention.rs index 52d1407c..aa6b71ad 100644 --- a/rust/src/callingconvention.rs +++ b/rust/src/callingconvention.rs @@ -286,14 +286,12 @@ where }) } - extern "C" fn cb_incoming_reg_value( + extern "C" fn cb_incoming_reg_value( _ctxt: *mut c_void, _reg: u32, _func: *mut BNFunction, val: *mut BNRegisterValue, - ) where - C: CallingConventionBase, - { + ) { ffi_wrap!("CallingConvention::incoming_reg_value", unsafe { //let ctxt = &*(ctxt as *mut CustomCallingConventionContext); let val = &mut *val; @@ -303,14 +301,12 @@ where }) } - extern "C" fn cb_incoming_flag_value( + extern "C" fn cb_incoming_flag_value( _ctxt: *mut c_void, _flag: u32, _func: *mut BNFunction, val: *mut BNRegisterValue, - ) where - C: CallingConventionBase, - { + ) { ffi_wrap!("CallingConvention::incoming_flag_value", unsafe { //let ctxt = &*(ctxt as *mut CustomCallingConventionContext); let val = &mut *val; @@ -395,8 +391,8 @@ where getGlobalPointerRegister: Some(cb_global_pointer_reg::), getImplicitlyDefinedRegisters: Some(cb_implicitly_defined_registers::), - getIncomingRegisterValue: Some(cb_incoming_reg_value::), - getIncomingFlagValue: Some(cb_incoming_flag_value::), + getIncomingRegisterValue: Some(cb_incoming_reg_value), + getIncomingFlagValue: Some(cb_incoming_flag_value), getIncomingVariableForParameterVariable: Some(cb_incoming_var_for_param::), getParameterVariableForIncomingVariable: Some(cb_incoming_param_for_var::), -- cgit v1.3.1