From 652dd72149b9c030e438d6de1a03ef54eafd8091 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 30 Jul 2019 18:21:15 -0400 Subject: Add continue HLIL instruction --- highlevelilinstruction.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'highlevelilinstruction.cpp') diff --git a/highlevelilinstruction.cpp b/highlevelilinstruction.cpp index 311d4e93..a53d5fe4 100644 --- a/highlevelilinstruction.cpp +++ b/highlevelilinstruction.cpp @@ -71,6 +71,7 @@ unordered_map> HighLevelILInstructionBase::operationOperandUsage = { {HLIL_NOP, {}}, {HLIL_BREAK, {}}, + {HLIL_CONTINUE, {}}, {HLIL_NORET, {}}, {HLIL_BP, {}}, {HLIL_UNDEF, {}}, @@ -974,6 +975,8 @@ ExprId HighLevelILInstruction::CopyTo(HighLevelILFunction* dest, subExprHandler(GetTrueExpr()), *this); case HLIL_BREAK: return dest->Break(*this); + case HLIL_CONTINUE: + return dest->Continue(*this); case HLIL_ASSIGN: return dest->Assign(size, subExprHandler(GetDestExpr()), subExprHandler(GetSourceExpr()), *this); @@ -1457,6 +1460,12 @@ ExprId HighLevelILFunction::Break(const ILSourceLocation& loc) } +ExprId HighLevelILFunction::Continue(const ILSourceLocation& loc) +{ + return AddExprWithLocation(HLIL_CONTINUE, loc, 0); +} + + ExprId HighLevelILFunction::Jump(ExprId dest, const ILSourceLocation& loc) { return AddExprWithLocation(HLIL_JUMP, loc, 0, dest); -- cgit v1.3.1