diff options
author | Mark Harmstone <mark@harmstone.com> | 2024-06-25 20:20:26 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2024-06-25 20:20:26 -0600 |
commit | 009b3290f2b2a41409530cbc8119343d6344b50e (patch) | |
tree | ea1b57df15bcc5e4ec740905aec40e365306aff9 /gcc/dwarf2codeview.h | |
parent | 3800a78a767f463bed6948c640eee4250781e62e (diff) | |
download | gcc-009b3290f2b2a41409530cbc8119343d6344b50e.zip gcc-009b3290f2b2a41409530cbc8119343d6344b50e.tar.gz gcc-009b3290f2b2a41409530cbc8119343d6344b50e.tar.bz2 |
[PATCH 10/11] Handle bitfields for CodeView
Translates structure members with DW_AT_data_bit_offset set in DWARF
into LF_BITFIELD symbols.
gcc/
* dwarf2codeview.cc (struct codeview_custom_type): Add lf_bitfield to
union.
(write_lf_bitfield): New function.
(write_custom_types): Call write_lf_bitfield.
(create_bitfield): New function.
(get_type_num_struct): Handle bitfields.
* dwarf2codeview.h (LF_BITFIELD): Define.
Diffstat (limited to 'gcc/dwarf2codeview.h')
-rw-r--r-- | gcc/dwarf2codeview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dwarf2codeview.h b/gcc/dwarf2codeview.h index 70eed6b..70eae55 100644 --- a/gcc/dwarf2codeview.h +++ b/gcc/dwarf2codeview.h @@ -64,6 +64,7 @@ along with GCC; see the file COPYING3. If not see #define LF_MODIFIER 0x1001 #define LF_POINTER 0x1002 #define LF_FIELDLIST 0x1203 +#define LF_BITFIELD 0x1205 #define LF_INDEX 0x1404 #define LF_ENUMERATE 0x1502 #define LF_ARRAY 0x1503 |