summaryrefslogtreecommitdiff
path: root/lowlevelil.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2016-05-08 23:46:20 -0400
committerRusty Wagner <rusty@vector35.com>2016-05-08 23:48:17 -0400
commit3ab807811a7efdcfeff4be101822be9d383c15e1 (patch)
tree52115a5182525d8ad557af54b6135800f9b9a9a5 /lowlevelil.cpp
parentecaf78b419d323f6b589aac4b9ff5ff24b314bc6 (diff)
Add additional IL stage for flags resolution
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);
+}