summaryrefslogtreecommitdiff
path: root/python/callingconvention.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-02-26 22:37:19 -0500
committerPeter LaFosse <peter@vector35.com>2018-03-23 17:10:06 -0400
commit1f90dae1d3ba958041862d39fff74e0dcdd9cf63 (patch)
tree0f00c3846356f142804e65c458f47bbf51a4dad4 /python/callingconvention.py
parent19b6629cd7e503d85f2a73bce62a5ddb8508acc1 (diff)
Architecture plugins no longer need to override the perform_* methods (you can now override get_instruction_info, not perform_get_instruction_info). The perform_* methods are now deprecated but will still function as expected. Added architecture hooks to Python API using this new style.
Diffstat (limited to 'python/callingconvention.py')
-rw-r--r--python/callingconvention.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/callingconvention.py b/python/callingconvention.py
index 5aad3317..49ef7666 100644
--- a/python/callingconvention.py
+++ b/python/callingconvention.py
@@ -75,7 +75,7 @@ class CallingConvention(object):
self.__class__._registered_calling_conventions.append(self)
else:
self.handle = handle
- self.arch = architecture.Architecture(core.BNGetCallingConventionArchitecture(self.handle))
+ self.arch = architecture.CoreArchitecture(core.BNGetCallingConventionArchitecture(self.handle))
self.__dict__["name"] = core.BNGetCallingConventionName(self.handle)
self.__dict__["arg_regs_share_index"] = core.BNAreArgumentRegistersSharedIndex(self.handle)
self.__dict__["stack_reserved_for_arg_regs"] = core.BNIsStackReservedForArgumentRegisters(self.handle)