diff options
| author | KyleMiles <krm504@nyu.edu> | 2021-10-02 19:00:41 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2021-10-05 18:06:43 -0400 |
| commit | c4f4bf5be39c224b619a5928d380d91122ecf1d8 (patch) | |
| tree | 6d6f0ee095259b05d2e2707621263cbb8b24981b /basicblock.cpp | |
| parent | c80d3d99b9e11c4120cd3a36349d8161f01c7a24 (diff) | |
More HLIL API parity; Resolves #2363
Diffstat (limited to 'basicblock.cpp')
| -rw-r--r-- | basicblock.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/basicblock.cpp b/basicblock.cpp index 6045f6ef..d9b49749 100644 --- a/basicblock.cpp +++ b/basicblock.cpp @@ -484,6 +484,15 @@ Ref<MediumLevelILFunction> BasicBlock::GetMediumLevelILFunction() const } +Ref<HighLevelILFunction> BasicBlock::GetHighLevelILFunction() const +{ + BNHighLevelILFunction* func = BNGetBasicBlockHighLevelILFunction(m_object); + if (!func) + return nullptr; + return new HighLevelILFunction(func); +} + + bool BasicBlock::GetInstructionContainingAddress(uint64_t addr, uint64_t* start) { return BNGetBasicBlockInstructionContainingAddress(m_object, addr, start); |
