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:
Simon Marchi 2021-01-22 12:23:40 -05:00
parent 5b7d941b90
commit 3062502019
6 changed files with 19 additions and 15 deletions

View file

@ -1036,7 +1036,7 @@ language_arch_info::type_and_symbol::alloc_type_symbol
{
struct symbol *symbol;
struct gdbarch *gdbarch;
gdb_assert (!TYPE_OBJFILE_OWNED (type));
gdb_assert (!type->is_objfile_owned ());
gdbarch = type->arch ();
symbol = new (gdbarch_obstack (gdbarch)) struct symbol ();
symbol->m_name = type->name ();