summaryrefslogtreecommitdiff
path: root/highlevelilinstruction.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 /highlevelilinstruction.h
parente1ad1aa09ce9e7760a68a8dc7c2dfe64c02aa100 (diff)
Allow overriding the IL source location that is used by *ILInstruction::CopyTo
Diffstat (limited to 'highlevelilinstruction.h')
-rw-r--r--highlevelilinstruction.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/highlevelilinstruction.h b/highlevelilinstruction.h
index 9be7d7c5..53a3c567 100644
--- a/highlevelilinstruction.h
+++ b/highlevelilinstruction.h
@@ -25,6 +25,7 @@
#include <vector>
#ifdef BINARYNINJACORE_LIBRARY
#include "variable.h"
+ #include "ilsourcelocation.h"
#else
#include "binaryninjaapi.h"
#endif
@@ -487,9 +488,10 @@ namespace BinaryNinja
void VisitExprs(const std::function<bool(const HighLevelILInstruction& expr)>& preFunc,
const std::function<void(const HighLevelILInstruction& expr)>& postFunc) const;
- ExprId CopyTo(HighLevelILFunction* dest) const;
+ ExprId CopyTo(HighLevelILFunction* dest, const ILSourceLocation& sourceLocation = {}) const;
ExprId CopyTo(HighLevelILFunction* dest,
- const std::function<ExprId(const HighLevelILInstruction& subExpr)>& subExprHandler) const;
+ const std::function<ExprId(const HighLevelILInstruction& subExpr)>& subExprHandler,
+ const ILSourceLocation& sourceLocation = {}) const;
bool operator<(const HighLevelILInstruction& other) const;
bool operator==(const HighLevelILInstruction& other) const;