]> git.ipfire.org Git - thirdparty/gcc.git/commit
Write LF_BCLASS records in CodeView struct definitions
authorMark Harmstone <mark@harmstone.com>
Thu, 29 Aug 2024 01:35:37 +0000 (02:35 +0100)
committerMark Harmstone <mark@harmstone.com>
Tue, 5 Nov 2024 00:47:29 +0000 (00:47 +0000)
commit7ac24078e06d95ecd234b5bfa07ff8dd47650791
treed94a5181d1be79201336a3c0099bc8dd34b89776
parenta96c774f7bb99729ab9e7e2a57cd970469ccbc08
Write LF_BCLASS records in CodeView struct definitions

When writing the CodeView type definition for a struct, translate
DW_TAG_inheritance DIEs into LF_BCLASS records, to record which other
structs this one inherits from.

gcc/
* dwarf2codeview.cc (enum cv_leaf_type): Add LF_BCLASS.
(struct codeview_subtype): Add lf_bclass to union.
(write_cv_padding): Add declaration.
(write_lf_fieldlist): Handle LF_BCLASS records.
(add_struct_inheritance): New function.
(get_type_num_struct): Call add_struct_inheritance.
gcc/dwarf2codeview.cc