diff options
| author | Mark Rowe <mark@vector35.com> | 2025-11-18 12:31:16 -0800 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-12-08 15:37:45 -0800 |
| commit | 41497526378568c17c4340f6a523a696920c2d1a (patch) | |
| tree | 4b2c8f48fe2744e9581ecd421ce26a66fe3f9ccc /highlevelilinstruction.h | |
| parent | e1ad1aa09ce9e7760a68a8dc7c2dfe64c02aa100 (diff) | |
Allow overriding the IL source location that is used by *ILInstruction::CopyTo
Diffstat (limited to 'highlevelilinstruction.h')
| -rw-r--r-- | highlevelilinstruction.h | 6 |
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; |
