Convert IS_TYPE_UNIT_GROUP to method
authorTom Tromey <tom@tromey.com>
Mon, 24 Feb 2020 22:50:57 +0000 (15:50 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 24 Feb 2020 22:50:57 +0000 (15:50 -0700)
commit197400e8009fa9a15ddc59cbf2cc32b0debd3424
tree34d697618bc7011d70041c9e4bea4e17e6df4413
parent7693576838f4fe66b2a2380425b5ad950c671b34
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.
gdb/ChangeLog
gdb/dwarf2/read.c
gdb/dwarf2/read.h