aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2codeview.h
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2024-06-23 21:39:45 -0600
committerJeff Law <jlaw@ventanamicro.com>2024-06-23 21:39:45 -0600
commit29fec9ee74c3219bce714f2e5b6381a48049e01e (patch)
tree1e8bca71cb56502ac49a3cf994fd3765b5a934a2 /gcc/dwarf2codeview.h
parent35cca2ccd908960d789533ddb93bb1bea5e71305 (diff)
downloadgcc-29fec9ee74c3219bce714f2e5b6381a48049e01e.zip
gcc-29fec9ee74c3219bce714f2e5b6381a48049e01e.tar.gz
gcc-29fec9ee74c3219bce714f2e5b6381a48049e01e.tar.bz2
[PATCH 05/11] Handle const and varible modifiers for CodeView
gcc/ * dwarf2codeview.cc (struct codeview_custom_type): Add lf_modifier to union. (write_cv_padding, write_lf_modifier): New functions. (write_custom_types): Call write_lf_modifier. (get_type_num_const_type): New function. (get_type_num_volatile_type): Likewise. (get_type_num): Handle DW_TAG_const_type and DW_TAG_volatile_type DIEs. * dwarf2codeview.h (MOD_const, MOD_volatile): Define. (LF_MODIFIER): Likewise.
Diffstat (limited to 'gcc/dwarf2codeview.h')
-rw-r--r--gcc/dwarf2codeview.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/dwarf2codeview.h b/gcc/dwarf2codeview.h
index 0af4c982..d48cfbe 100644
--- a/gcc/dwarf2codeview.h
+++ b/gcc/dwarf2codeview.h
@@ -56,7 +56,12 @@ along with GCC; see the file COPYING3. If not see
#define CV_PTR_NEAR32 0x0a
#define CV_PTR_64 0x0c
+/* LF_MODIFIER values. */
+#define MOD_const 0x1
+#define MOD_volatile 0x2
+
/* Constants for type definitions. */
+#define LF_MODIFIER 0x1001
#define LF_POINTER 0x1002
/* Debug Format Interface. Used in dwarf2out.cc. */