From 0996601386125530284705160083919973992954 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 31 Jul 2025 17:25:18 -0400 Subject: Support MLIL expr mappings in C++ --- highlevelil.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'highlevelil.cpp') diff --git a/highlevelil.cpp b/highlevelil.cpp index 77a0f051..84d74eb3 100644 --- a/highlevelil.cpp +++ b/highlevelil.cpp @@ -26,6 +26,12 @@ using namespace BinaryNinja; using namespace std; +ILSourceLocation::ILSourceLocation(const struct HighLevelILInstruction& instr): + address(instr.address), sourceOperand(instr.sourceOperand), valid(true), + ilBased(true), ilDirect(true), ilExprIndex(instr.exprIndex) +{} + + HighLevelILFunction::HighLevelILFunction(Architecture* arch, Function* func) { m_object = BNCreateHighLevelILFunction(arch->GetObject(), func ? func->GetObject() : nullptr); -- cgit v1.3.1