summaryrefslogtreecommitdiff
path: root/python/callingconvention.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2019-05-15 15:17:57 -0700
committerJordan Wiens <jordan@psifertex.com>2019-05-15 15:17:57 -0700
commit13a793f7ad19f43ff97c058becb76182b0159452 (patch)
treee677419e13f654f337002d5950193a9abbf90a99 /python/callingconvention.py
parent392672b07f971cebe3da5de20a24fd8d425c1061 (diff)
first half of the refactor adding getters and setters for init created properties
Diffstat (limited to 'python/callingconvention.py')
-rw-r--r--python/callingconvention.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/python/callingconvention.py b/python/callingconvention.py
index ee42caca..92aa30f2 100644
--- a/python/callingconvention.py
+++ b/python/callingconvention.py
@@ -53,7 +53,7 @@ class CallingConvention(object):
if arch is None or name is None:
self.handle = None
raise ValueError("Must specify either handle or architecture and name")
- self.arch = arch
+ self._arch = arch
self._pending_reg_lists = {}
self._cb = core.BNCustomCallingConvention()
self._cb.context = 0
@@ -443,3 +443,12 @@ class CallingConvention(object):
func_obj = func.handle
out_var = core.BNGetParameterVariableForIncomingVariable(self.handle, in_buf, func_obj)
return binaryninja.function.Variable(func, out_var.type, out_var.index, out_var.storage)
+
+ @property
+ def arch(self):
+ """ """
+ return self._arch
+
+ @arch.setter
+ def arch(self, value):
+ self._arch = value