summaryrefslogtreecommitdiff
path: root/lowlevelil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lowlevelil.cpp')
-rw-r--r--lowlevelil.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/lowlevelil.cpp b/lowlevelil.cpp
index dfb53e5b..fdb59535 100644
--- a/lowlevelil.cpp
+++ b/lowlevelil.cpp
@@ -623,11 +623,13 @@ void LowLevelILFunction::GenerateSSAForm()
}
-bool LowLevelILFunction::GetExprText(Architecture* arch, ExprId expr, vector<InstructionTextToken>& tokens)
+bool LowLevelILFunction::GetExprText(Architecture* arch, ExprId expr, vector<InstructionTextToken>& tokens,
+ DisassemblySettings* settings)
{
size_t count;
BNInstructionTextToken* list;
- if (!BNGetLowLevelILExprText(m_object, arch->GetObject(), expr, &list, &count))
+ if (!BNGetLowLevelILExprText(m_object, arch->GetObject(), expr, settings ? settings->GetObject() : nullptr,
+ &list, &count))
return false;
tokens = InstructionTextToken::ConvertAndFreeInstructionTextTokenList(list, count);
@@ -636,12 +638,13 @@ bool LowLevelILFunction::GetExprText(Architecture* arch, ExprId expr, vector<Ins
bool LowLevelILFunction::GetInstructionText(
- Function* func, Architecture* arch, size_t instr, vector<InstructionTextToken>& tokens)
+ Function* func, Architecture* arch, size_t instr, vector<InstructionTextToken>& tokens, DisassemblySettings* settings)
{
size_t count;
BNInstructionTextToken* list;
if (!BNGetLowLevelILInstructionText(
- m_object, func ? func->GetObject() : nullptr, arch->GetObject(), instr, &list, &count))
+ m_object, func ? func->GetObject() : nullptr, arch->GetObject(), instr,
+ settings ? settings->GetObject() : nullptr, &list, &count))
return false;
tokens = InstructionTextToken::ConvertAndFreeInstructionTextTokenList(list, count);