diff options
| author | KyleMiles <krm504@nyu.edu> | 2023-05-10 10:18:38 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2023-05-10 10:18:38 -0400 |
| commit | 6acc3ec38633967065bf7978cab8c3b04140d031 (patch) | |
| tree | 274533cc05fafbe57027cee4e9ec1df1441bb920 /rust/src/callingconvention.rs | |
| parent | 99c7a280ae771073b6a36e958426d6f2c7d29462 (diff) | |
Rust API : Remove some unused type parameters (this should remove a little bit of codegen)...but will likely break custom BV plugins
Diffstat (limited to 'rust/src/callingconvention.rs')
| -rw-r--r-- | rust/src/callingconvention.rs | 16 |
1 files changed, 6 insertions, 10 deletions
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<C>( + 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<C>); let val = &mut *val; @@ -303,14 +301,12 @@ where }) } - extern "C" fn cb_incoming_flag_value<C>( + 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<C>); let val = &mut *val; @@ -395,8 +391,8 @@ where getGlobalPointerRegister: Some(cb_global_pointer_reg::<C>), getImplicitlyDefinedRegisters: Some(cb_implicitly_defined_registers::<C>), - getIncomingRegisterValue: Some(cb_incoming_reg_value::<C>), - getIncomingFlagValue: Some(cb_incoming_flag_value::<C>), + getIncomingRegisterValue: Some(cb_incoming_reg_value), + getIncomingFlagValue: Some(cb_incoming_flag_value), getIncomingVariableForParameterVariable: Some(cb_incoming_var_for_param::<C>), getParameterVariableForIncomingVariable: Some(cb_incoming_param_for_var::<C>), |
