gdb: remove FIELD_ENUMVAL macro

Remove FIELD_ENUMVAL, replace its uses with field::loc_enumval.

Change-Id: Id4861cee91a8bb583a9836f1aa5da0a320fbf4d9
This commit is contained in:
Simon Marchi 2021-09-23 23:47:08 -04:00
parent 3a543e211e
commit 5d2038e3f5
3 changed files with 3 additions and 4 deletions

View file

@ -4215,7 +4215,7 @@ check_types_equal (struct type *type1, struct type *type2,
return false;
break;
case FIELD_LOC_KIND_ENUMVAL:
if (FIELD_ENUMVAL (*field1) != FIELD_ENUMVAL (*field2))
if (field1->loc_enumval () != field2->loc_enumval ())
return false;
/* Don't compare types of enum fields, because they don't
have a type. */