From 072c5cd6eee7af9671e6c4fe583e77bc3bcbdd1d Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 14 Apr 2020 21:25:41 -0400 Subject: Add IL support to linear view --- function.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index c218a78e..0cffb6bc 100644 --- a/function.cpp +++ b/function.cpp @@ -293,6 +293,12 @@ Ref Function::GetLowLevelIL() const } +Ref Function::GetLowLevelILIfAvailable() const +{ + return new LowLevelILFunction(BNGetFunctionLowLevelILIfAvailable(m_object)); +} + + size_t Function::GetLowLevelILForInstruction(Architecture* arch, uint64_t addr) { return BNGetLowLevelILForInstruction(m_object, arch->GetObject(), addr); @@ -467,6 +473,12 @@ Ref Function::GetLiftedIL() const } +Ref Function::GetLiftedILIfAvailable() const +{ + return new LowLevelILFunction(BNGetFunctionLiftedILIfAvailable(m_object)); +} + + size_t Function::GetLiftedILForInstruction(Architecture* arch, uint64_t addr) { return BNGetLiftedILForInstruction(m_object, arch->GetObject(), addr); @@ -527,6 +539,12 @@ Ref Function::GetMediumLevelIL() const } +Ref Function::GetMediumLevelILIfAvailable() const +{ + return new MediumLevelILFunction(BNGetFunctionMediumLevelILIfAvailable(m_object)); +} + + Ref Function::GetType() const { return new Type(BNGetFunctionType(m_object)); -- cgit v1.3.1