From 3ccd563f68ab9b19edfe8e79d592e59645a44d36 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Tue, 3 Sep 2019 15:48:35 -0400 Subject: add a few missing len properties and __str__ for StringReference --- python/function.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/function.py') 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: -- cgit v1.3.1