diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-22 12:23:40 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-01-22 12:23:40 -0500 |
commit | 30625020198359db7462a197380c242d91c07f14 (patch) | |
tree | 263dabd36214130ee5fe053ac9e8690c9f0392b2 /gdb/compile | |
parent | 5b7d941b90d1a232dc144dc14850dd2fb63c35da (diff) | |
download | gdb-30625020198359db7462a197380c242d91c07f14.zip gdb-30625020198359db7462a197380c242d91c07f14.tar.gz gdb-30625020198359db7462a197380c242d91c07f14.tar.bz2 |
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
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-c-types.c | 4 | ||||
-rw-r--r-- | gdb/compile/compile-cplus-types.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/compile/compile-c-types.c b/gdb/compile/compile-c-types.c index 90de208..104e619 100644 --- a/gdb/compile/compile-c-types.c +++ b/gdb/compile/compile-c-types.c @@ -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; diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index ddb0d8a..0f32b0e 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -970,7 +970,7 @@ compile_cplus_convert_func (compile_cplus_instance *instance, GDB's parser used to do. */ if (target_type == nullptr) { - 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; |