summaryrefslogtreecommitdiff
path: root/rust/src/function.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-05-10 19:24:35 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-05-12 17:45:24 -0400
commit7e32ee8b629e3e4f8d061cbe0729ff961b3502d7 (patch)
treeb33eedcd9afb5422aefd1a42e95f4a9ab2e7cca0 /rust/src/function.rs
parent4180c31fda63b6ccb9ce4ee543031fe4a5060d5f (diff)
[Rust] Remove `NonSSAVariant` bound from `LowLevelILFunction`
We don't do enough with the lifted il != non lifted il to justify the bound. This makes modifying IL much less work as the historical lifted il bound is gone.
Diffstat (limited to 'rust/src/function.rs')
-rw-r--r--rust/src/function.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs
index 92538384..ec859f7e 100644
--- a/rust/src/function.rs
+++ b/rust/src/function.rs
@@ -41,7 +41,7 @@ use crate::architecture::RegisterId;
use crate::confidence::Conf;
use crate::high_level_il::HighLevelILFunction;
use crate::language_representation::CoreLanguageRepresentationFunction;
-use crate::low_level_il::{LiftedILFunction, RegularLowLevelILFunction};
+use crate::low_level_il::LowLevelILRegularFunction;
use crate::medium_level_il::MediumLevelILFunction;
use crate::variable::{
IndirectBranchInfo, MergedVariable, NamedVariableWithType, RegisterValue, RegisterValueType,
@@ -558,38 +558,38 @@ impl Function {
}
}
- pub fn low_level_il(&self) -> Result<Ref<RegularLowLevelILFunction>, ()> {
+ pub fn low_level_il(&self) -> Result<Ref<LowLevelILRegularFunction>, ()> {
unsafe {
let llil_ptr = BNGetFunctionLowLevelIL(self.handle);
match llil_ptr.is_null() {
- false => Ok(RegularLowLevelILFunction::ref_from_raw(llil_ptr)),
+ false => Ok(LowLevelILRegularFunction::ref_from_raw(llil_ptr)),
true => Err(()),
}
}
}
- pub fn low_level_il_if_available(&self) -> Option<Ref<RegularLowLevelILFunction>> {
+ pub fn low_level_il_if_available(&self) -> Option<Ref<LowLevelILRegularFunction>> {
let llil_ptr = unsafe { BNGetFunctionLowLevelILIfAvailable(self.handle) };
match llil_ptr.is_null() {
- false => Some(unsafe { RegularLowLevelILFunction::ref_from_raw(llil_ptr) }),
+ false => Some(unsafe { LowLevelILRegularFunction::ref_from_raw(llil_ptr) }),
true => None,
}
}
- pub fn lifted_il(&self) -> Result<Ref<LiftedILFunction>, ()> {
+ pub fn lifted_il(&self) -> Result<Ref<LowLevelILRegularFunction>, ()> {
unsafe {
let llil_ptr = BNGetFunctionLiftedIL(self.handle);
match llil_ptr.is_null() {
- false => Ok(LiftedILFunction::ref_from_raw(llil_ptr)),
+ false => Ok(LowLevelILRegularFunction::ref_from_raw(llil_ptr)),
true => Err(()),
}
}
}
- pub fn lifted_il_if_available(&self) -> Option<Ref<LiftedILFunction>> {
+ pub fn lifted_il_if_available(&self) -> Option<Ref<LowLevelILRegularFunction>> {
let llil_ptr = unsafe { BNGetFunctionLiftedILIfAvailable(self.handle) };
match llil_ptr.is_null() {
- false => Some(unsafe { LiftedILFunction::ref_from_raw(llil_ptr) }),
+ false => Some(unsafe { LowLevelILRegularFunction::ref_from_raw(llil_ptr) }),
true => None,
}
}