diff options
| author | Rusty Wagner <rusty@vector35.com> | 2020-04-14 21:25:41 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2020-04-17 14:20:35 -0400 |
| commit | 072c5cd6eee7af9671e6c4fe583e77bc3bcbdd1d (patch) | |
| tree | 52e8b1018c7588dc540a687c8219ad2803de13af /function.cpp | |
| parent | 1385e2dbd9be1db21114d95b7c4767773e2b0692 (diff) | |
Add IL support to linear view
Diffstat (limited to 'function.cpp')
| -rw-r--r-- | function.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp index c218a78e..0cffb6bc 100644 --- a/function.cpp +++ b/function.cpp @@ -293,6 +293,12 @@ Ref<LowLevelILFunction> Function::GetLowLevelIL() const } +Ref<LowLevelILFunction> 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<LowLevelILFunction> Function::GetLiftedIL() const } +Ref<LowLevelILFunction> 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<MediumLevelILFunction> Function::GetMediumLevelIL() const } +Ref<MediumLevelILFunction> Function::GetMediumLevelILIfAvailable() const +{ + return new MediumLevelILFunction(BNGetFunctionMediumLevelILIfAvailable(m_object)); +} + + Ref<Type> Function::GetType() const { return new Type(BNGetFunctionType(m_object)); |
