From ddca2fbb272ae8bbce6e421f07845d3439d08f5b Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 31 Jul 2015 02:54:02 -0400 Subject: Find functions that don't return based on control flow, and use that in parent functions --- function.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 4e813916..c1367ad6 100644 --- a/function.cpp +++ b/function.cpp @@ -33,6 +33,18 @@ Ref Function::GetSymbol() const } +bool Function::WasAutomaticallyDiscovered() const +{ + return BNWasFunctionAutomaticallyDiscovered(m_func); +} + + +bool Function::CanReturn() const +{ + return BNCanFunctionReturn(m_func); +} + + vector> Function::GetBasicBlocks() const { size_t count; -- cgit v1.3.1