summaryrefslogtreecommitdiff
path: root/workflow.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-05-06 16:47:15 -0400
committerGlenn Smith <glenn@vector35.com>2025-06-11 17:37:26 -0400
commit6091002460609793463078951047220893747923 (patch)
tree4378eb62ee87b27365b44813413b2c2d839e445b /workflow.cpp
parent3a1a81c3ddd8340432ecd2687d3a25195cc97d40 (diff)
Expose AnalysisContext::GetLiftedILFunction properly
It was already grabbing the Lifted IL through the function object, which may not be the most up to date
Diffstat (limited to 'workflow.cpp')
-rw-r--r--workflow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/workflow.cpp b/workflow.cpp
index b2648d3a..13c69136 100644
--- a/workflow.cpp
+++ b/workflow.cpp
@@ -38,6 +38,15 @@ Ref<Function> AnalysisContext::GetFunction()
}
+Ref<LowLevelILFunction> AnalysisContext::GetLiftedILFunction()
+{
+ BNLowLevelILFunction* func = BNAnalysisContextGetLiftedILFunction(m_object);
+ if (!func)
+ return nullptr;
+ return new LowLevelILFunction(func);
+}
+
+
Ref<LowLevelILFunction> AnalysisContext::GetLowLevelILFunction()
{
BNLowLevelILFunction* func = BNAnalysisContextGetLowLevelILFunction(m_object);