Skip to content

Commit 407219f

Browse files
CouleeAppsemesare
authored andcommitted
Implement BasicBlock::IsHighLevelILBlock
1 parent 180adfd commit 407219f

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

basicblock.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,12 @@ bool BasicBlock::IsMediumLevelILBlock() const
592592
}
593593

594594

595+
bool BasicBlock::IsHighLevelILBlock() const
596+
{
597+
return BNIsHighLevelILBasicBlock(m_object);
598+
}
599+
600+
595601
Ref<LowLevelILFunction> BasicBlock::GetLowLevelILFunction() const
596602
{
597603
BNLowLevelILFunction* func = BNGetBasicBlockLowLevelILFunction(m_object);

binaryninjaapi.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10416,17 +10416,23 @@ namespace BinaryNinja {
1041610416
*/
1041710417
bool IsILBlock() const;
1041810418

10419+
/*! Whether the basic block contains Low Level IL
10420+
10421+
\return Whether the basic block contains Low Level IL
10422+
*/
10423+
bool IsLowLevelILBlock() const;
10424+
1041910425
/*! Whether the basic block contains Medium Level IL
1042010426

1042110427
\return Whether the basic block contains Medium Level IL
1042210428
*/
10423-
bool IsLowLevelILBlock() const;
10429+
bool IsMediumLevelILBlock() const;
1042410430

1042510431
/*! Whether the basic block contains High Level IL
1042610432

1042710433
\return Whether the basic block contains High Level IL
1042810434
*/
10429-
bool IsMediumLevelILBlock() const;
10435+
bool IsHighLevelILBlock() const;
1043010436

1043110437
/*! Get the Low Level IL Function for this basic block
1043210438

0 commit comments

Comments
 (0)