gdb: remove TYPE_CODE macro
[deliverable/binutils-gdb.git] / gdb / go-typeprint.c
index 763ae54d07a0eec863682205ea18d3792a513f4a..c334914398d1a027ef9fbf4079c2b27fc46d54d6 100644 (file)
@@ -51,8 +51,8 @@ go_print_type (struct type *type, const char *varstring,
     type = check_typedef (type);
 
   /* Print the type of "abc" as "string", not char[4].  */
-  if (TYPE_CODE (type) == TYPE_CODE_ARRAY
-      && TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_CHAR)
+  if (type->code () == TYPE_CODE_ARRAY
+      && TYPE_TARGET_TYPE (type)->code () == TYPE_CODE_CHAR)
     {
       fputs_filtered ("string", stream);
       return;
This page took 0.022977 seconds and 4 git commands to generate.