summaryrefslogtreecommitdiff
path: root/mediumlevelilinstruction.h
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2025-11-18 12:31:16 -0800
committerMark Rowe <mark@vector35.com>2025-12-08 15:37:45 -0800
commit41497526378568c17c4340f6a523a696920c2d1a (patch)
tree4b2c8f48fe2744e9581ecd421ce26a66fe3f9ccc /mediumlevelilinstruction.h
parente1ad1aa09ce9e7760a68a8dc7c2dfe64c02aa100 (diff)
Allow overriding the IL source location that is used by *ILInstruction::CopyTo
Diffstat (limited to 'mediumlevelilinstruction.h')
-rw-r--r--mediumlevelilinstruction.h6
1 files changed, 4 insertions, 2 deletions
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<bool(const MediumLevelILInstruction& expr)>& func) const;
- ExprId CopyTo(MediumLevelILFunction* dest) const;
+ ExprId CopyTo(MediumLevelILFunction* dest, const ILSourceLocation& sourceLocation = {}) const;
ExprId CopyTo(MediumLevelILFunction* dest,
- const std::function<ExprId(const MediumLevelILInstruction& subExpr)>& subExprHandler) const;
+ const std::function<ExprId(const MediumLevelILInstruction& subExpr)>& subExprHandler,
+ const ILSourceLocation& sourceLocation = {}) const;
// Templated accessors for instruction operands, use these for efficient access to a known instruction
template <BNMediumLevelILOperation N>