diff options
| author | Rusty Wagner <rusty@vector35.com> | 2015-07-31 02:54:02 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2015-07-31 02:54:02 -0400 |
| commit | ddca2fbb272ae8bbce6e421f07845d3439d08f5b (patch) | |
| tree | a671494d5a59473bd5d22f04c72d0e1528b885e1 /function.cpp | |
| parent | 40192fa7adbf7b53e9d45343b0ae1b47cc5fef86 (diff) | |
Find functions that don't return based on control flow, and use that in parent functions
Diffstat (limited to 'function.cpp')
| -rw-r--r-- | function.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp index 4e813916..c1367ad6 100644 --- a/function.cpp +++ b/function.cpp @@ -33,6 +33,18 @@ Ref<Symbol> Function::GetSymbol() const } +bool Function::WasAutomaticallyDiscovered() const +{ + return BNWasFunctionAutomaticallyDiscovered(m_func); +} + + +bool Function::CanReturn() const +{ + return BNCanFunctionReturn(m_func); +} + + vector<Ref<BasicBlock>> Function::GetBasicBlocks() const { size_t count; |
