diff options
| author | Ryan Snyder <ryan@vector35.com> | 2018-03-20 09:53:59 -0400 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2018-03-20 10:08:13 -0400 |
| commit | 5f07bf18df013860c9d9870a4ad0fba78379b0f1 (patch) | |
| tree | 2fba0c2a192ba8211fa40c48f95e2ba1c113ecee /python/callingconvention.py | |
| parent | 33b2a9d597e38e3c1df94b17ee7617fac8cdf311 (diff) | |
Cache all created CoreArchitecture objects
Diffstat (limited to 'python/callingconvention.py')
| -rw-r--r-- | python/callingconvention.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/callingconvention.py b/python/callingconvention.py index 49ef7666..e3ec7261 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.CoreArchitecture(core.BNGetCallingConventionArchitecture(self.handle)) + self.arch = architecture.CoreArchitecture._from_cache(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) |
