gdb: remove TYPE_CODE macro
[deliverable/binutils-gdb.git] / gdb / cris-tdep.c
index e619811429fbedf1f0080131fb44407769b3d990..068ae9908d734dcdf659b17c3fb94610cb626ee3 100644 (file)
@@ -1805,8 +1805,8 @@ cris_return_value (struct gdbarch *gdbarch, struct value *function,
                   struct type *type, struct regcache *regcache,
                   gdb_byte *readbuf, const gdb_byte *writebuf)
 {
-  if (TYPE_CODE (type) == TYPE_CODE_STRUCT 
-      || TYPE_CODE (type) == TYPE_CODE_UNION
+  if (type->code () == TYPE_CODE_STRUCT
+      || type->code () == TYPE_CODE_UNION
       || TYPE_LENGTH (type) > 8)
     /* Structs, unions, and anything larger than 8 bytes (2 registers)
        goes on the stack.  */
This page took 0.026266 seconds and 4 git commands to generate.