summaryrefslogtreecommitdiff
path: root/lowlevelil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lowlevelil.cpp')
-rw-r--r--lowlevelil.cpp16
1 files changed, 14 insertions, 2 deletions
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<uint64_t> LowLevelILFunction::GetOperandList(ExprId i, size_t listOperand)
+vector<uint64_t> 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<uint64_t> 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);
+}