summaryrefslogtreecommitdiff
path: root/lowlevelil.cpp
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2016-05-15 20:21:41 -0400
committerJordan Wiens <jordan@psifertex.com>2016-05-15 20:21:41 -0400
commit675c7e8d0b4e1bc1a488c73729e94bec96373fbc (patch)
treeb2bfb2020c4d345adde4fb64c53d7009247249c8 /lowlevelil.cpp
parentc17b562736dba5a2d042b2c7979f5dc32507388c (diff)
parent72bf56348109d87994928dee244dd97a27480c6d (diff)
Merge branch 'dev' of github.com:Vector35/binaryninja-api into dev
Diffstat (limited to 'lowlevelil.cpp')
-rw-r--r--lowlevelil.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lowlevelil.cpp b/lowlevelil.cpp
index 81104419..385c55c5 100644
--- a/lowlevelil.cpp
+++ b/lowlevelil.cpp
@@ -581,11 +581,13 @@ bool LowLevelILFunction::GetExprText(Architecture* arch, ExprId expr, vector<Ins
}
-bool LowLevelILFunction::GetInstructionText(Architecture* arch, size_t instr, vector<InstructionTextToken>& tokens)
+bool LowLevelILFunction::GetInstructionText(Function* func, Architecture* arch, size_t instr,
+ vector<InstructionTextToken>& tokens)
{
size_t count;
BNInstructionTextToken* list;
- if (!BNGetLowLevelILInstructionText(m_object, arch->GetObject(), instr, &list, &count))
+ if (!BNGetLowLevelILInstructionText(m_object, func ? func->GetObject() : nullptr, arch->GetObject(),
+ instr, &list, &count))
return false;
tokens.clear();