[binutils-gdb] gdb: remove TYPE_RVALUE_REFERENCE_TYPE
Simon Marchi via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f95d25e5d6860e2e0600e129a5e9d716d87d0ecf commit f95d25e5d6860e2e0600e129a5e9d716d87d0ecf Author: Simon Marchi <[email protected]> Date: Mon Mar 16 10:25:22 2026 -0400 gdb: remove TYPE_RVALUE_REFERENCE_TYPE IMO, there is no point in keeping this macro. Remove it and access the field directly. If we ever want some kind of abstraction in front of the field, then we'll add a method. Change-Id: Ic1e6ee65f7fda78a40e935b1e6a8e3b7ab5540fb Approved-By: Andrew Burgess <[email protected]> Diff: --- gdb/gdbtypes.c | 4 ++-- gdb/gdbtypes.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 425aacc4a82..6cdcdb6db2d 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -419,7 +419,7 @@ make_reference_type (type *type, type_code refcode) gdb_assert (refcode == TYPE_CODE_REF || refcode == TYPE_CODE_RVALUE_REF); ntype = (refcode == TYPE_CODE_REF ? type->reference_type - : TYPE_RVALUE_REFERENCE_TYPE (type)); + : type->rvalue_reference_type); if (ntype) return ntype; @@ -427,7 +427,7 @@ make_reference_type (type *type, type_code refcode) ntype = type_allocator (type).new_type (); ntype->set_target_type (type); reftype = (refcode == TYPE_CODE_REF ? &type->reference_type - : &TYPE_RVALUE_REFERENCE_TYPE (type)); + : &type->rvalue_reference_type); *reftype = ntype; diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index e241da40280..afca3c9f636 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1897,7 +1897,6 @@ extern void allocate_gnat_aux_type (struct type *); (TYPE_SPECIFIC_FIELD (type) = TYPE_SPECIFIC_FIXED_POINT, \ allocate_fixed_point_type_info (type)) -#define TYPE_RVALUE_REFERENCE_TYPE(thistype) (thistype)->rvalue_reference_type #define TYPE_CHAIN(thistype) (thistype)->chain /* * Return the alignment of the type in target addressable memory