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 --- lowlevelilinstruction.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lowlevelilinstruction.h') diff --git a/lowlevelilinstruction.h b/lowlevelilinstruction.h index 43c31adc..4c3499b8 100644 --- a/lowlevelilinstruction.h +++ b/lowlevelilinstruction.h @@ -24,6 +24,7 @@ #include #include #ifdef BINARYNINJACORE_LIBRARY + #include "ilsourcelocation.h" #include "type.h" #else #include "binaryninjaapi.h" @@ -872,9 +873,10 @@ namespace BinaryNinja void VisitExprs(const std::function& func) const; - ExprId CopyTo(LowLevelILFunction* dest) const; + ExprId CopyTo(LowLevelILFunction* dest, const ILSourceLocation& sourceLocation = {}) const; ExprId CopyTo(LowLevelILFunction* 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