[PATCH 4/9] gdb: Convert language la_pass_by_reference field to a method

Aktemur, Tankut Baris tankut.baris.aktemur@intel.com
Thu May 14 11:00:19 GMT 2020


On Tuesday, May 12, 2020 12:36 AM, Andrew Burgess wrote:
> This commit changes the language_data::la_pass_by_reference function
> pointer member variable into a member function of language_defn.
> 
...
> +struct language_pass_by_ref_info
> +language_defn::pass_by_reference_info (struct type *type) const
> +{
> +  return default_pass_by_reference (type);
> +}

A further cleanup idea is to get rid of default_pass_by_reference and
inline its definition at the call sites.  default_pass_by_reference simply
returns {}.  Afaict, aside from the new call above, there are two calls:
1) in cp-abi.c, and 2) in gnu-v3-abi.c.

Regards.
-Baris


Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


More information about the Gdb-patches mailing list