diff options
author | Tom Tromey <tom@tromey.com> | 2020-02-24 15:50:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-02-24 15:50:57 -0700 |
commit | 197400e8009fa9a15ddc59cbf2cc32b0debd3424 (patch) | |
tree | 34d697618bc7011d70041c9e4bea4e17e6df4413 /gdb/dwarf2/read.h | |
parent | 7693576838f4fe66b2a2380425b5ad950c671b34 (diff) | |
download | gdb-197400e8009fa9a15ddc59cbf2cc32b0debd3424.zip gdb-197400e8009fa9a15ddc59cbf2cc32b0debd3424.tar.gz gdb-197400e8009fa9a15ddc59cbf2cc32b0debd3424.tar.bz2 |
Convert IS_TYPE_UNIT_GROUP to method
This converts the IS_TYPE_UNIT_GROUP to a method on
dwarf2_per_cu_data.
gdb/ChangeLog
2020-02-24 Tom Tromey <tom@tromey.com>
* dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
New method.
* dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
(dw2_do_instantiate_symtab, dw2_get_file_names)
(build_type_psymtab_dependencies, load_full_type_unit): Update.
Diffstat (limited to 'gdb/dwarf2/read.h')
-rw-r--r-- | gdb/dwarf2/read.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h index b06c2e2..f7e740c 100644 --- a/gdb/dwarf2/read.h +++ b/gdb/dwarf2/read.h @@ -437,6 +437,13 @@ struct dwarf2_per_cu_data { return dwarf_version; } + + /* A type unit group has a per_cu object that is recognized by + having no section. */ + bool type_unit_group_p () const + { + return section == nullptr; + } }; /* Entry in the signatured_types hash table. */ |