summaryrefslogtreecommitdiff
path: root/python/lowlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/lowlevelil.py')
-rw-r--r--python/lowlevelil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 2609f761..90ecbd74 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -511,6 +511,9 @@ class LowLevelILInstruction(object):
def __repr__(self):
return "<il: %s>" % str(self)
+ def __eq__(self, value):
+ return self.function == value.function and self.expr_index == value.expr_index
+
@property
def tokens(self):
"""LLIL tokens (read-only)"""