diff options
author | Mark Harmstone <mark@harmstone.com> | 2024-11-19 00:46:45 +0000 |
---|---|---|
committer | Mark Harmstone <mark@harmstone.com> | 2024-11-19 01:06:36 +0000 |
commit | 14d706ed0e90373c98a0ce223ffeea8846f6d9bc (patch) | |
tree | 7d988aa19e057f553c8176c58e88acb0d35158f8 /gcc/testsuite/ChangeLog-2008 | |
parent | 4958fe2255918a86235225a4646c64172e955f24 (diff) | |
download | gcc-14d706ed0e90373c98a0ce223ffeea8846f6d9bc.zip gcc-14d706ed0e90373c98a0ce223ffeea8846f6d9bc.tar.gz gcc-14d706ed0e90373c98a0ce223ffeea8846f6d9bc.tar.bz2 |
Produce CodeView info about nested types
If the DIE for a struct, class, or union contains a nested type, add a
LF_NESTTYPE entry to its field list recording this.
Plus if we use a nested type, make sure that its parent also gets
defined. This may entail adding a forward definition and creating a
deferred type, so we need to call flush_deferred_types in
codeview_debug_finish as well.
gcc/
* dwarf2codeview.cc (enum cv_leaf_type): Add LF_NESTTYPE.
(struct codeview_subtype): Add lf_nesttype to union.
(flush_deferred_types): Add declaration.
(write_lf_fieldlist): Handle LF_NESTTYPE.
(codeview_debug_finish): Call flush_deferred_types.
(add_struct_nested_type): New function.
(get_type_num_struct): Call add_struct_nested_type, and if nested make
that parent is added.
Diffstat (limited to 'gcc/testsuite/ChangeLog-2008')
0 files changed, 0 insertions, 0 deletions