summaryrefslogtreecommitdiff
path: root/arch/msp430/src/lift.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-04-30 17:38:40 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-05-12 17:45:24 -0400
commitc3fdda9727f5507818e3f55576ad32215a22b0f9 (patch)
treed522025055eb7253c7f2cb94732402aacf2afbfc /arch/msp430/src/lift.rs
parentc3f344a38ca4b027b4e69b0f82d3184622d6da79 (diff)
[Rust] Remove Architecture trait bound on LLIL related structures
Diffstat (limited to 'arch/msp430/src/lift.rs')
-rw-r--r--arch/msp430/src/lift.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/msp430/src/lift.rs b/arch/msp430/src/lift.rs
index 6ad7b67b..124911f0 100644
--- a/arch/msp430/src/lift.rs
+++ b/arch/msp430/src/lift.rs
@@ -1,7 +1,6 @@
use crate::architecture::offset_to_absolute;
use crate::flag::{Flag, FlagWrite};
use crate::register::Register;
-use crate::Msp430;
use binaryninja::{architecture::FlagCondition, low_level_il::lifting::LowLevelILLabel};
@@ -164,11 +163,7 @@ macro_rules! conditional_jump {
};
}
-pub(crate) fn lift_instruction(
- inst: &Instruction,
- addr: u64,
- il: &MutableLiftedILFunction<Msp430>,
-) {
+pub(crate) fn lift_instruction(inst: &Instruction, addr: u64, il: &MutableLiftedILFunction) {
match inst {
Instruction::Rrc(inst) => {
let size = match inst.operand_width() {
@@ -628,8 +623,8 @@ pub(crate) fn lift_instruction(
fn lift_source_operand<'a>(
operand: &Operand,
size: usize,
- il: &'a MutableLiftedILFunction<Msp430>,
-) -> MutableLiftedILExpr<'a, Msp430, ValueExpr> {
+ il: &'a MutableLiftedILFunction,
+) -> MutableLiftedILExpr<'a, ValueExpr> {
match operand {
Operand::RegisterDirect(r) => il.reg(size, Register::try_from(*r as u32).unwrap()),
Operand::Indexed((r, offset)) => il