diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2019-09-03 15:48:35 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2019-09-03 15:48:35 -0400 |
| commit | 3ccd563f68ab9b19edfe8e79d592e59645a44d36 (patch) | |
| tree | b656cb2a386d281613ecab5852d8c27a93282386 /python/function.py | |
| parent | cc850ebdf753a4fa8643e6b3e596d212251f010c (diff) | |
add a few missing len properties and __str__ for StringReference
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py index 6330f656..8080c626 100644 --- a/python/function.py +++ b/python/function.py @@ -2686,6 +2686,9 @@ class InstructionInfo(object): def add_branch(self, branch_type, target = 0, arch = None): self._branches.append(InstructionBranch(branch_type, target, arch)) + def __len__(self): + return self._length + def __repr__(self): branch_delay = "" if self._branch_delay: |
