summaryrefslogtreecommitdiff
path: root/python/basicblock.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/basicblock.py')
-rw-r--r--python/basicblock.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/basicblock.py b/python/basicblock.py
index 26db925d..66d96882 100644
--- a/python/basicblock.py
+++ b/python/basicblock.py
@@ -68,6 +68,9 @@ class BasicBlock(object):
"""Internal method used to instantiante child instances"""
return BasicBlock(view, handle)
+ def __hash__(self):
+ return hash((self.start, self.end, self.arch.name))
+
@property
def function(self):
"""Basic block function (read-only)"""