diff options
| author | Ryan Snyder <ryan@vector35.com> | 2018-08-20 18:58:00 -0400 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2018-08-20 18:59:04 -0400 |
| commit | cecb2af5e8ec590500379e4b103531649de4e5a2 (patch) | |
| tree | c214a9910d3f67d94087ba507951b8dd95d4026d /binaryninjaapi.h | |
| parent | 1e6336e12229add2f1716019d1b050c7f989dbaa (diff) | |
api: add methods to get basic block objects from IL instrs
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 620c0472..b00689e0 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -2937,6 +2937,7 @@ namespace BinaryNinja uint32_t GetTemporaryFlagCount(); std::vector<Ref<BasicBlock>> GetBasicBlocks() const; + Ref<BasicBlock> GetBasicBlockForInstruction(size_t i) const; Ref<LowLevelILFunction> GetSSAForm() const; Ref<LowLevelILFunction> GetNonSSAForm() const; @@ -3256,6 +3257,7 @@ namespace BinaryNinja void VisitAllExprs(const std::function<bool(BasicBlock* block, const MediumLevelILInstruction& expr)>& func); std::vector<Ref<BasicBlock>> GetBasicBlocks() const; + Ref<BasicBlock> GetBasicBlockForInstruction(size_t i) const; Ref<MediumLevelILFunction> GetSSAForm() const; Ref<MediumLevelILFunction> GetNonSSAForm() const; |
