diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-08-31 11:46:24 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-08-31 13:16:13 -0400 |
commit | 454977cdc414ebdb45cda0072b26569fd387d659 (patch) | |
tree | 03b89b6dfbf1c48fa1aeda02a3b0fe82498a2db8 /gdb/compile | |
parent | 6c0f749351bb8f46bd6a37f9a36be8b8174f689d (diff) | |
download | gdb-454977cdc414ebdb45cda0072b26569fd387d659.zip gdb-454977cdc414ebdb45cda0072b26569fd387d659.tar.gz gdb-454977cdc414ebdb45cda0072b26569fd387d659.tar.bz2 |
gdb: remove TYPE_FIELD_ARTIFICIAL
Replace with type::field + field::is_artificial.
Change-Id: Ie3bacae49d9bd02e83e504c1ce01470aba56a081
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-cplus-types.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index d8e305f..cea04b7 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -584,7 +584,7 @@ compile_cplus_convert_struct_or_union_members const char *field_name = type->field (i).name (); if (TYPE_FIELD_IGNORE (type, i) - || TYPE_FIELD_ARTIFICIAL (type, i)) + || type->field (i).is_artificial ()) continue; /* GDB records unnamed/anonymous fields with empty string names. */ @@ -982,7 +982,7 @@ compile_cplus_convert_func (compile_cplus_instance *instance, int artificials = 0; for (int i = 0; i < type->num_fields (); ++i) { - if (strip_artificial && TYPE_FIELD_ARTIFICIAL (type, i)) + if (strip_artificial && type->field (i).is_artificial ()) { --array.n_elements; ++artificials; |