Use is_xcoff_format in ld testsuite
[deliverable/binutils-gdb.git] / gdb / d-exp.y
index 6b25ee298d4eaf2e56a7bfdbeb56af26c11e7995..fdd68a51db1e38fe8e4e83c5425d4f96b161710c 100644 (file)
@@ -1,6 +1,6 @@
 /* YACC parser for D expressions, for GDB.
 
-   Copyright (C) 2014-2019 Free Software Foundation, Inc.
+   Copyright (C) 2014-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -462,7 +462,7 @@ PrimaryExpression:
                          /* Check if the qualified name is in the global
                             context.  However if the symbol has not already
                             been resolved, it's not likely to be found.  */
-                         if (TYPE_CODE (type) == TYPE_CODE_MODULE)
+                         if (type->code () == TYPE_CODE_MODULE)
                            {
                              struct bound_minimal_symbol msymbol;
                              struct block_symbol sym;
@@ -644,10 +644,10 @@ BasicType:
 static int
 type_aggregate_p (struct type *type)
 {
-  return (TYPE_CODE (type) == TYPE_CODE_STRUCT
-         || TYPE_CODE (type) == TYPE_CODE_UNION
-         || TYPE_CODE (type) == TYPE_CODE_MODULE
-         || (TYPE_CODE (type) == TYPE_CODE_ENUM
+  return (type->code () == TYPE_CODE_STRUCT
+         || type->code () == TYPE_CODE_UNION
+         || type->code () == TYPE_CODE_MODULE
+         || (type->code () == TYPE_CODE_ENUM
              && TYPE_DECLARED_CLASS (type)));
 }
 
This page took 0.025471 seconds and 4 git commands to generate.