summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-05-31 15:52:17 -0400
committerPeter LaFosse <peter@vector35.com>2017-05-31 16:25:13 -0400
commit36525b7ee9a8ee3eb95a8ba5ec490c05874bde8d (patch)
tree35c8f5791352ea805a6d2d48018a92276e539f63 /python
parent741e5ab52de234b779a9536f0e756eb9ba225736 (diff)
Make branches types always use the enumeration not the name
Diffstat (limited to 'python')
-rw-r--r--python/architecture.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/architecture.py b/python/architecture.py
index 34f2ca35..504f67ce 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -1128,13 +1128,12 @@ class Architecture(object):
result.length = info.length
result.branch_delay = info.branchDelay
for i in xrange(0, info.branchCount):
- branch_type = BranchType(info.branchType[i]).name
target = info.branchTarget[i]
if info.branchArch[i]:
arch = Architecture(info.branchArch[i])
else:
arch = None
- result.add_branch(branch_type, target, arch)
+ result.add_branch(BranchType(info.branchType[i]), target, arch)
return result
def get_instruction_text(self, data, addr):