From 41497526378568c17c4340f6a523a696920c2d1a Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Tue, 18 Nov 2025 12:31:16 -0800 Subject: Allow overriding the IL source location that is used by *ILInstruction::CopyTo --- mediumlevelilinstruction.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mediumlevelilinstruction.h') diff --git a/mediumlevelilinstruction.h b/mediumlevelilinstruction.h index 077ced5b..ef1f9017 100644 --- a/mediumlevelilinstruction.h +++ b/mediumlevelilinstruction.h @@ -26,6 +26,7 @@ #ifdef BINARYNINJACORE_LIBRARY #include "constantdata.h" #include "variable.h" + #include "ilsourcelocation.h" #else #include "binaryninjaapi.h" #endif @@ -620,9 +621,10 @@ namespace BinaryNinja void VisitExprs(const std::function& func) const; - ExprId CopyTo(MediumLevelILFunction* dest) const; + ExprId CopyTo(MediumLevelILFunction* dest, const ILSourceLocation& sourceLocation = {}) const; ExprId CopyTo(MediumLevelILFunction* dest, - const std::function& subExprHandler) const; + const std::function& subExprHandler, + const ILSourceLocation& sourceLocation = {}) const; // Templated accessors for instruction operands, use these for efficient access to a known instruction template -- cgit v1.3.1