summaryrefslogtreecommitdiff
path: root/rust/src/flowgraph.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-06-28 18:39:09 -0400
committerMason Reed <mason@vector35.com>2025-07-02 01:56:54 -0400
commit6662b774b37840380c2e2274a4ca01680b72ba90 (patch)
treeaa4a2b03a8cef2051cb1cf7ce72e104df5502f59 /rust/src/flowgraph.rs
parentb6e1dd2ef1400f8a9cdffd72f26262a0de64cbc8 (diff)
[Rust] Misc things for WARP
- Make LowLevelILFunction::from_raw public" - Add a helper to get lifted il from flow graph
Diffstat (limited to 'rust/src/flowgraph.rs')
-rw-r--r--rust/src/flowgraph.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/src/flowgraph.rs b/rust/src/flowgraph.rs
index 2d1d986c..4489d950 100644
--- a/rust/src/flowgraph.rs
+++ b/rust/src/flowgraph.rs
@@ -124,6 +124,10 @@ impl FlowGraph {
unsafe { BNSetViewForFlowGraph(self.handle, view_ptr) }
}
+ pub fn lifted_il(&self) -> Option<Ref<LowLevelILRegularFunction>> {
+ self.function()?.lifted_il().ok()
+ }
+
pub fn low_level_il(&self) -> Option<Ref<LowLevelILRegularFunction>> {
unsafe {
let llil_ptr = BNGetFlowGraphLowLevelILFunction(self.handle);