Implement some Ada OP_ATR_ operations
This implements a few Ada OP_ATR_ operations. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * ada-lang.c (ada_unop_atr_operation::evaluate): New method. * ada-exp.h (class ada_unop_atr_operation): New.
This commit is contained in:
parent
82c3886e24
commit
60fa02ca6f
3 changed files with 42 additions and 0 deletions
|
@ -267,6 +267,22 @@ public:
|
|||
{ return BINOP_IN_BOUNDS; }
|
||||
};
|
||||
|
||||
/* Implement several unary Ada OP_ATR_* operations. */
|
||||
class ada_unop_atr_operation
|
||||
: public maybe_constant_operation<operation_up, enum exp_opcode, int>
|
||||
{
|
||||
public:
|
||||
|
||||
using maybe_constant_operation::maybe_constant_operation;
|
||||
|
||||
value *evaluate (struct type *expect_type,
|
||||
struct expression *exp,
|
||||
enum noside noside) override;
|
||||
|
||||
enum exp_opcode opcode () const override
|
||||
{ return std::get<1> (m_storage); }
|
||||
};
|
||||
|
||||
} /* namespace expr */
|
||||
|
||||
#endif /* ADA_EXP_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue