From c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 14 Sep 2020 11:07:57 -0400 Subject: gdb: remove TYPE_UNSIGNED gdb/ChangeLog: * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with type::is_unsigned. Change-Id: I84f76f5cd44ff7294e421d317376a9e476bc8666 --- gdb/ada-lang.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gdb/ada-lang.c') diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index f13866e..c014d1c 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -701,7 +701,7 @@ umax_of_size (int size) static LONGEST max_of_type (struct type *t) { - if (TYPE_UNSIGNED (t)) + if (t->is_unsigned ()) return (LONGEST) umax_of_size (TYPE_LENGTH (t)); else return max_of_size (TYPE_LENGTH (t)); @@ -711,7 +711,7 @@ max_of_type (struct type *t) static LONGEST min_of_type (struct type *t) { - if (TYPE_UNSIGNED (t)) + if (t->is_unsigned ()) return 0; else return min_of_size (TYPE_LENGTH (t)); @@ -2276,7 +2276,7 @@ has_negatives (struct type *type) default: return 0; case TYPE_CODE_INT: - return !TYPE_UNSIGNED (type); + return !type->is_unsigned (); case TYPE_CODE_RANGE: return type->bounds ()->low.const_val () - type->bounds ()->bias < 0; } @@ -9354,7 +9354,7 @@ ada_value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op) if (v2 == 0) error (_("second operand of %s must not be zero."), op_string (op)); - if (TYPE_UNSIGNED (type1) || op == BINOP_MOD) + if (type1->is_unsigned () || op == BINOP_MOD) return value_binop (arg1, arg2, op); v1 = value_as_long (arg1); @@ -11444,7 +11444,7 @@ ada_is_modular_type (struct type *type) return (subranged_type != NULL && type->code () == TYPE_CODE_RANGE && subranged_type->code () == TYPE_CODE_INT - && TYPE_UNSIGNED (subranged_type)); + && subranged_type->is_unsigned ()); } /* Assuming ada_is_modular_type (TYPE), the modulus of TYPE. */ -- cgit v1.1