mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
gdb: remove TYPE_OBJFILE_OWNED macro
Update all users to use the type::is_objfile_owned method. gdb/ChangeLog: * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to use the type::is_objfile_owned method. Change-Id: Icae84d136393ab9f756f50a33ac3cedda13c5ba2
This commit is contained in:
@ -224,7 +224,6 @@ DEF_ENUM_FLAGS_TYPE (enum type_instance_flag_value, type_instance_flags);
|
||||
the objfile retrieved as TYPE_OBJFILE. Otherwise, the type is
|
||||
owned by an architecture; TYPE_OBJFILE is NULL in this case. */
|
||||
|
||||
#define TYPE_OBJFILE_OWNED(t) ((t)->is_objfile_owned ())
|
||||
#define TYPE_OBJFILE(t) ((t)->objfile ())
|
||||
|
||||
/* * True if this type was declared using the "class" keyword. This is
|
||||
@ -2242,7 +2241,7 @@ extern const struct floatformat *floatformats_bfloat16[BFD_ENDIAN_UNKNOWN];
|
||||
when it is no longer needed. */
|
||||
|
||||
#define TYPE_ALLOC(t,size) \
|
||||
(obstack_alloc ((TYPE_OBJFILE_OWNED (t) \
|
||||
(obstack_alloc (((t)->is_objfile_owned () \
|
||||
? &((t)->objfile ()->objfile_obstack) \
|
||||
: gdbarch_obstack ((t)->arch ())), \
|
||||
size))
|
||||
|
Reference in New Issue
Block a user