summaryrefslogtreecommitdiff
path: root/lowlevelil.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-08-28 17:19:32 -0400
committerRusty Wagner <rusty@vector35.com>2018-08-28 17:19:32 -0400
commit20e06506a3d96c7327ca5d729ab01e8c2a7cff3c (patch)
tree65880063ccbdcb45cc247a0138915d8560d2ec27 /lowlevelil.cpp
parent5841af2db8e8dcf4e0da0c438ac040c5fa90038b (diff)
parent426bb3d8b47b93658bf969c429a8b98adae13c30 (diff)
Merge branch 'dev' into test_stack_adjust
Diffstat (limited to 'lowlevelil.cpp')
-rw-r--r--lowlevelil.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lowlevelil.cpp b/lowlevelil.cpp
index 79138159..40748327 100644
--- a/lowlevelil.cpp
+++ b/lowlevelil.cpp
@@ -491,6 +491,15 @@ vector<Ref<BasicBlock>> LowLevelILFunction::GetBasicBlocks() const
}
+Ref<BasicBlock> LowLevelILFunction::GetBasicBlockForInstruction(size_t i) const
+{
+ BNBasicBlock* block = BNGetLowLevelILBasicBlockForInstruction(m_object, i);
+ if (!block)
+ return nullptr;
+ return new BasicBlock(block);
+}
+
+
Ref<LowLevelILFunction> LowLevelILFunction::GetSSAForm() const
{
BNLowLevelILFunction* func = BNGetLowLevelILSSAForm(m_object);