summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-01-20 13:16:29 -0500
committerPeter LaFosse <peter@vector35.com>2022-01-20 13:16:29 -0500
commit65c1ab279b34f11070a450de993886df9c7353ec (patch)
treefff31eaca0be83e034f9356465b02f7224ce47a2 /function.cpp
parentb97912fbac14e760f1b595180ffe58af1ee34194 (diff)
Add support for mmlil_if_available
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp
index 9123c19e..a7e4c154 100644
--- a/function.cpp
+++ b/function.cpp
@@ -675,6 +675,12 @@ Ref<MediumLevelILFunction> Function::GetMediumLevelIL() const
}
+Ref<MediumLevelILFunction> Function::GetMappedMediumLevelIL() const
+{
+ return new MediumLevelILFunction(BNGetFunctionMappedMediumLevelIL(m_object));
+}
+
+
Ref<MediumLevelILFunction> Function::GetMediumLevelILIfAvailable() const
{
BNMediumLevelILFunction* function = BNGetFunctionMediumLevelILIfAvailable(m_object);
@@ -684,6 +690,15 @@ Ref<MediumLevelILFunction> Function::GetMediumLevelILIfAvailable() const
}
+Ref<MediumLevelILFunction> Function::GetMappedMediumLevelILIfAvailable() const
+{
+ BNMediumLevelILFunction* function = BNGetFunctionMappedMediumLevelILIfAvailable(m_object);
+ if (!function)
+ return nullptr;
+ return new MediumLevelILFunction(function);
+}
+
+
Ref<HighLevelILFunction> Function::GetHighLevelIL() const
{
return new HighLevelILFunction(BNGetFunctionHighLevelIL(m_object));