aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2codeview.h
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2024-06-25 17:28:49 -0600
committerJeff Law <jlaw@ventanamicro.com>2024-06-25 17:29:16 -0600
commit0a5f559fb369ac9568ff57835928ac3ce3517be7 (patch)
tree22798e64dd47f3d4b65bf4af749db9e480b87d69 /gcc/dwarf2codeview.h
parent7d413a87f15562b9ec21f462d565522b45e57c3c (diff)
downloadgcc-0a5f559fb369ac9568ff57835928ac3ce3517be7.zip
gcc-0a5f559fb369ac9568ff57835928ac3ce3517be7.tar.gz
gcc-0a5f559fb369ac9568ff57835928ac3ce3517be7.tar.bz2
[PATCH 08/11] Handle unions for CodeView.
Translates DW_TAG_union_type DIEs into LF_UNION symbols. gcc/ * dwarf2codeview.cc (write_lf_union): New function. (write_custom_types): Call write_lf_union. (add_struct_forward_def): Handle DW_TAG_union_type DIEs. (get_type_num_struct): Handle unions. (get_type_num): Handle DW_TAG_union_type DIEs. * dwarf2codeview.h (LF_UNION): Define.
Diffstat (limited to 'gcc/dwarf2codeview.h')
-rw-r--r--gcc/dwarf2codeview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dwarf2codeview.h b/gcc/dwarf2codeview.h
index d474024..e60fe86 100644
--- a/gcc/dwarf2codeview.h
+++ b/gcc/dwarf2codeview.h
@@ -68,6 +68,7 @@ along with GCC; see the file COPYING3. If not see
#define LF_ENUMERATE 0x1502
#define LF_CLASS 0x1504
#define LF_STRUCTURE 0x1505
+#define LF_UNION 0x1506
#define LF_ENUM 0x1507
#define LF_MEMBER 0x150d
#define LF_CHAR 0x8000