diff options
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: |
