From 3ab807811a7efdcfeff4be101822be9d383c15e1 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Sun, 8 May 2016 23:46:20 -0400 Subject: Add additional IL stage for flags resolution --- lowlevelil.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'lowlevelil.cpp') diff --git a/lowlevelil.cpp b/lowlevelil.cpp index a3d591a0..81104419 100644 --- a/lowlevelil.cpp +++ b/lowlevelil.cpp @@ -482,10 +482,10 @@ void LowLevelILFunction::MarkLabel(BNLowLevelILLabel& label) } -vector LowLevelILFunction::GetOperandList(ExprId i, size_t listOperand) +vector LowLevelILFunction::GetOperandList(ExprId expr, size_t listOperand) { size_t count; - uint64_t* operands = BNLowLevelILGetOperandList(m_object, i, listOperand, &count); + uint64_t* operands = BNLowLevelILGetOperandList(m_object, expr, listOperand, &count); vector result; for (size_t i = 0; i < count; i++) result.push_back(operands[i]); @@ -601,3 +601,15 @@ bool LowLevelILFunction::GetInstructionText(Architecture* arch, size_t instr, ve BNFreeInstructionText(list, count); return true; } + + +uint32_t LowLevelILFunction::GetTemporaryRegisterCount() +{ + return BNGetLowLevelILTemporaryRegisterCount(m_object); +} + + +uint32_t LowLevelILFunction::GetTemporaryFlagCount() +{ + return BNGetLowLevelILTemporaryFlagCount(m_object); +} -- cgit v1.3.1