summaryrefslogtreecommitdiff
path: root/gdb/compile/compile-c-types.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-09-26 16:38:02 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-10-29 16:44:45 -0400
commit970db5186051c051d9c5bd1f7ed404902b96fa80 (patch)
treeec3f149b291e22c532b6b61367fd9b2abcdff0e4 /gdb/compile/compile-c-types.c
parentb610c04548a39dbce6d51c33d7a8125e59066939 (diff)
downloadbinutils-gdb-970db5186051c051d9c5bd1f7ed404902b96fa80.tar.gz
gdb: remove TYPE_FIELD_ENUMVAL
Remove TYPE_FIELD_ENUMVAL, replace with type::field + field::loc_enumval. Change-Id: I2ada73e4635aad3363ce2eb22c1dc52698ee2072
Diffstat (limited to 'gdb/compile/compile-c-types.c')
-rw-r--r--gdb/compile/compile-c-types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/compile/compile-c-types.c b/gdb/compile/compile-c-types.c
index 8fbbc0e4ef2..87eb970231d 100644
--- a/gdb/compile/compile-c-types.c
+++ b/gdb/compile/compile-c-types.c
@@ -137,7 +137,7 @@ convert_enum (compile_c_instance *context, struct type *type)
for (i = 0; i < type->num_fields (); ++i)
{
context->plugin ().build_add_enum_constant
- (result, type->field (i).name (), TYPE_FIELD_ENUMVAL (type, i));
+ (result, type->field (i).name (), type->field (i).loc_enumval ());
}
context->plugin ().finish_enum_type (result);