diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2017-10-30 17:46:49 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-11-06 16:32:06 -0500 |
| commit | ecb96a16443a45b0ebd463e831be8ca3be9f7f61 (patch) | |
| tree | a9f17f7a9b1f1d8533b12a7174008035191dc260 /python/basicblock.py | |
| parent | 185b5608d501807ad8af35055c2a6eb63250be5c (diff) | |
__hash__ for three types of basic blocks
Diffstat (limited to 'python/basicblock.py')
| -rw-r--r-- | python/basicblock.py | 3 |
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)""" |
