diff options
Diffstat (limited to 'python/lowlevelil.py')
| -rw-r--r-- | python/lowlevelil.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 9435fd5c..a32eb4a2 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -940,6 +940,14 @@ class LowLevelILFunction(object): return LowLevelILExpr(core.BNLowLevelILAddExpr(self.handle, operation, size, flags, a, b, c, d)) def replace_expr(self, original, new): + """ + ``replace_expr`` allows modification of LowLevelILExpressions but ONLY during lifting. + + .. warning:: This function should ONLY be called as a part of a lifter. It will otherwise not do anything useful as there's no way to trigger re-analysis of IL levels at this time. + :param LowLevelILExpr original: the LowLevelILExpr to replace (may also be an expression index) + :param LowLevelILExpr new: the LowLevelILExpr to add to the current LowLevelILFunction (may also be an expression index) + :rtype: None + """ if isinstance(original, LowLevelILInstruction): original = original.expr_index elif isinstance(original, LowLevelILExpr): |
