diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-08 07:27:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-08 07:28:41 -0700 |
commit | 0922dc847e90e6ab53acd2ef7725103e027126b9 (patch) | |
tree | 771b8cc42945817c325382bb48e378685804aa12 /gdb/ada-exp.h | |
parent | 1eaebe02cfe78229d78ac27f5bd6651e1c1af863 (diff) | |
download | fsf-binutils-gdb-0922dc847e90e6ab53acd2ef7725103e027126b9.zip fsf-binutils-gdb-0922dc847e90e6ab53acd2ef7725103e027126b9.tar.gz fsf-binutils-gdb-0922dc847e90e6ab53acd2ef7725103e027126b9.tar.bz2 |
Remove two Ada opcodes
The OP_ATR_MIN and OP_ATR_MAX constants aren't truly needed.
Internally, they are converted to BINOP_MIN and BINOP_MAX. This patch
removes them in favor of simple reuse.
gdb/ChangeLog
2021-03-08 Tom Tromey <tom@tromey.com>
* std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
* ada-lang.c (ada_binop_minmax): Update.
* ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
Use BINOP_MIN and BINOP_MAX.
Diffstat (limited to 'gdb/ada-exp.h')
-rw-r--r-- | gdb/ada-exp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-exp.h b/gdb/ada-exp.h index 1ae0cbc..0b6f1f2 100644 --- a/gdb/ada-exp.h +++ b/gdb/ada-exp.h @@ -213,8 +213,8 @@ using ada_binop_div_operation = binop_operation<BINOP_DIV, ada_mult_binop>; using ada_binop_rem_operation = binop_operation<BINOP_REM, ada_mult_binop>; using ada_binop_mod_operation = binop_operation<BINOP_MOD, ada_mult_binop>; -using ada_binop_min_operation = binop_operation<OP_ATR_MIN, ada_binop_minmax>; -using ada_binop_max_operation = binop_operation<OP_ATR_MAX, ada_binop_minmax>; +using ada_binop_min_operation = binop_operation<BINOP_MIN, ada_binop_minmax>; +using ada_binop_max_operation = binop_operation<BINOP_MAX, ada_binop_minmax>; using ada_binop_exp_operation = binop_operation<BINOP_EXP, ada_binop_exp>; |