diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-02-14 17:48:23 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2023-02-14 17:56:54 -0500 |
| commit | 7829801632556958526537447495764541534147 (patch) | |
| tree | 07e532e94d19d6733257a517adfef1f9b3f58093 /lowlevelil.cpp | |
| parent | 0a41de02d27174ecb9d2f6ae439267b9428f04ea (diff) | |
Add DisassemblySettings to LLIL::GetExprText
To make possible the next commit
Diffstat (limited to 'lowlevelil.cpp')
| -rw-r--r-- | lowlevelil.cpp | 11 |
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); |
