From f535df40f978d221547b45650b75aa1089e197ce Mon Sep 17 00:00:00 2001 From: Michael Krasnitski Date: Thu, 8 Feb 2024 19:50:00 -0500 Subject: Rename `mlil::operation::ConstantData` to `ConstData` to mirror HLIL --- rust/src/mlil/operation.rs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'rust/src/mlil/operation.rs') diff --git a/rust/src/mlil/operation.rs b/rust/src/mlil/operation.rs index 9b3a4a70..319ba34b 100644 --- a/rust/src/mlil/operation.rs +++ b/rust/src/mlil/operation.rs @@ -192,23 +192,6 @@ pub(super) fn get_float(value: u64, size: usize) -> f64 { } } -pub(super) fn get_constant_data( - function: &MediumLevelILFunction, - state: u32, - value: i64, - size: usize, -) -> types::ConstantData { - types::ConstantData::new( - function.get_function(), - RegisterValue::new( - RegisterValueType::from_raw_value(state).unwrap(), - value, - 0, - size, - ), - ) -} - fn get_raw_operation(function: &MediumLevelILFunction, idx: usize) -> BNMediumLevelILInstruction { unsafe { BNGetMediumLevelILByIndex(function.handle, idx) } } @@ -283,7 +266,7 @@ pub struct ExternPtr { // CONST_DATA #[derive(Copy, Clone)] -pub struct ConstantData { +pub struct ConstData { pub constant_data_kind: u32, pub constant_data_value: i64, pub size: usize, -- cgit v1.3.1