diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:07:57 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-09-14 11:07:57 -0400 |
commit | c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf (patch) | |
tree | c5d25c2c2cd369f74ed393926638302e9da95c02 /gdb/ada-lang.c | |
parent | 653223d3561b5976d12ade101113af9d08348b8c (diff) | |
download | fsf-binutils-gdb-c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf.zip fsf-binutils-gdb-c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf.tar.gz fsf-binutils-gdb-c6d940a9569deb4a89a5628caa78b1ccfcfd2bdf.tar.bz2 |
gdb: remove TYPE_UNSIGNED
gdb/ChangeLog:
* gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
type::is_unsigned.
Change-Id: I84f76f5cd44ff7294e421d317376a9e476bc8666
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 10 |
1 files changed, 5 insertions, 5 deletions
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. */ |