From 4dc7c3041e7c95e373b55dbb27b1861e82976fc0 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 30 May 2016 22:40:24 -0400 Subject: Add IL instruction to promote bool to int, used for MIPS jump tables --- lowlevelil.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lowlevelil.cpp') diff --git a/lowlevelil.cpp b/lowlevelil.cpp index d86bb523..550accc2 100644 --- a/lowlevelil.cpp +++ b/lowlevelil.cpp @@ -428,6 +428,12 @@ ExprId LowLevelILFunction::TestBit(size_t size, ExprId a, ExprId b) } +ExprId LowLevelILFunction::BoolToInt(size_t size, ExprId a) +{ + return AddExpr(LLIL_BOOL_TO_INT, size, 0, a); +} + + ExprId LowLevelILFunction::SystemCall() { return AddExpr(LLIL_SYSCALL, 0, 0); -- cgit v1.3.1