]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/go-exp.y
gdb: remove SYMBOL_CLASS macro, add getter
[thirdparty/binutils-gdb.git] / gdb / go-exp.y
index 359af2260568420162dfd73e53cde304c8d4c703..5436072d66e3f9ae4534525edfaf421f8f743c5a 100644 (file)
@@ -1338,7 +1338,7 @@ package_name_p (const char *name, const struct block *block)
   sym = lookup_symbol (name, block, STRUCT_DOMAIN, &is_a_field_of_this).symbol;
 
   if (sym
-      && SYMBOL_CLASS (sym) == LOC_TYPEDEF
+      && sym->aclass () == LOC_TYPEDEF
       && SYMBOL_TYPE (sym)->code () == TYPE_CODE_MODULE)
     return 1;