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:
parent
5b7d941b90
commit
3062502019
6 changed files with 19 additions and 15 deletions
|
@ -164,7 +164,7 @@ convert_func (compile_c_instance *context, struct type *type)
|
|||
GDB's parser used to do. */
|
||||
if (target_type == NULL)
|
||||
{
|
||||
if (TYPE_OBJFILE_OWNED (type))
|
||||
if (type->is_objfile_owned ())
|
||||
target_type = objfile_type (type->objfile ())->builtin_int;
|
||||
else
|
||||
target_type = builtin_type (type->arch ())->builtin_int;
|
||||
|
@ -323,7 +323,7 @@ convert_type_basic (compile_c_instance *context, struct type *type)
|
|||
built-in parser does. For now, assume "int" like GDB's
|
||||
built-in parser used to do, but at least warn. */
|
||||
struct type *fallback;
|
||||
if (TYPE_OBJFILE_OWNED (type))
|
||||
if (type->is_objfile_owned ())
|
||||
fallback = objfile_type (type->objfile ())->builtin_int;
|
||||
else
|
||||
fallback = builtin_type (type->arch ())->builtin_int;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue