summaryrefslogtreecommitdiff
path: root/python/lowlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/lowlevelil.py')
-rw-r--r--python/lowlevelil.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 3f2616b5..04e9ab5f 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -573,6 +573,10 @@ class LowLevelILInstruction(BaseILInstruction):
return self.instr.source_operand
@property
+ def source_location(self) -> ILSourceLocation:
+ return ILSourceLocation.from_instruction(self)
+
+ @property
def tokens(self) -> TokenList:
"""LLIL tokens (read-only)"""
# special case for those instructions that don't have tokens
@@ -3859,7 +3863,8 @@ class LowLevelILFunction:
original.raw_operands[2],
original.raw_operands[3],
original.size,
- original.raw_flags
+ original.raw_flags,
+ original.source_location
)
def replace_expr(self, original: InstructionOrExpression, new: InstructionOrExpression) -> None: