diff options
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-c-types.c | 2 | ||||
-rw-r--r-- | gdb/compile/compile-cplus-types.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/compile/compile-c-types.c b/gdb/compile/compile-c-types.c index 8fbbc0e..87eb970 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); diff --git a/gdb/compile/compile-cplus-types.c b/gdb/compile/compile-cplus-types.c index a54a544..1bd083d 100644 --- a/gdb/compile/compile-cplus-types.c +++ b/gdb/compile/compile-cplus-types.c @@ -944,7 +944,7 @@ compile_cplus_convert_enum (compile_cplus_instance *instance, struct type *type, continue; instance->plugin ().build_enum_constant (result, fname.get (), - TYPE_FIELD_ENUMVAL (type, i)); + type->field (i).loc_enumval ()); } /* Finish enum definition and pop scopes. */ |