From 5c82c6036e04936e253d2031f73f8218bbed06aa Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 3 Sep 2021 11:12:56 -0400 Subject: Commonize _to_core_struct/_from_core_struct Improve implementation of immutable_copy/mutable_copy --- python/callingconvention.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python/callingconvention.py') diff --git a/python/callingconvention.py b/python/callingconvention.py index b0227b71..683aebe8 100644 --- a/python/callingconvention.py +++ b/python/callingconvention.py @@ -348,10 +348,10 @@ class CallingConvention: try: func_obj = function.Function(handle = core.BNNewFunctionReference(func)) reg_name = self.arch.get_reg_name(reg) - api_obj = self.perform_get_incoming_reg_value(reg_name, func_obj)._to_api_object() + api_obj = self.perform_get_incoming_reg_value(reg_name, func_obj)._to_core_struct() except: log.log_error(traceback.format_exc()) - api_obj = variable.Undetermined()._to_api_object() + api_obj = variable.Undetermined()._to_core_struct() result[0].state = api_obj.state result[0].value = api_obj.value @@ -359,10 +359,10 @@ class CallingConvention: try: func_obj = function.Function(handle = core.BNNewFunctionReference(func)) reg_name = self.arch.get_reg_name(reg) - api_obj = self.perform_get_incoming_flag_value(reg_name, func_obj)._to_api_object() + api_obj = self.perform_get_incoming_flag_value(reg_name, func_obj)._to_core_struct() except: log.log_error(traceback.format_exc()) - api_obj = variable.Undetermined()._to_api_object() + api_obj = variable.Undetermined()._to_core_struct() result[0].state = api_obj.state result[0].value = api_obj.value -- cgit v1.3.1