From 6091002460609793463078951047220893747923 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 6 May 2025 16:47:15 -0400 Subject: Expose AnalysisContext::GetLiftedILFunction properly It was already grabbing the Lifted IL through the function object, which may not be the most up to date --- workflow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'workflow.cpp') diff --git a/workflow.cpp b/workflow.cpp index b2648d3a..13c69136 100644 --- a/workflow.cpp +++ b/workflow.cpp @@ -38,6 +38,15 @@ Ref AnalysisContext::GetFunction() } +Ref AnalysisContext::GetLiftedILFunction() +{ + BNLowLevelILFunction* func = BNAnalysisContextGetLiftedILFunction(m_object); + if (!func) + return nullptr; + return new LowLevelILFunction(func); +} + + Ref AnalysisContext::GetLowLevelILFunction() { BNLowLevelILFunction* func = BNAnalysisContextGetLowLevelILFunction(m_object); -- cgit v1.3.1