forked from Imagelibrary/binutils-gdb
Introduce ada_structop_operation
This adds class ada_structop_operation, which implements STRUCTOP_STRUCT for Ada. gdb/ChangeLog 2021-03-08 Tom Tromey <tom@tromey.com> * ada-lang.c (ada_structop_operation::evaluate): New method. * ada-exp.h (class ada_structop_operation): New.
This commit is contained in:
@@ -371,6 +371,22 @@ public:
|
||||
enum noside noside) override;
|
||||
};
|
||||
|
||||
/* Implement STRUCTOP_STRUCT for Ada. */
|
||||
class ada_structop_operation
|
||||
: public structop_base_operation
|
||||
{
|
||||
public:
|
||||
|
||||
using structop_base_operation::structop_base_operation;
|
||||
|
||||
value *evaluate (struct type *expect_type,
|
||||
struct expression *exp,
|
||||
enum noside noside) override;
|
||||
|
||||
enum exp_opcode opcode () const override
|
||||
{ return STRUCTOP_STRUCT; }
|
||||
};
|
||||
|
||||
} /* namespace expr */
|
||||
|
||||
#endif /* ADA_EXP_H */
|
||||
|
||||
Reference in New Issue
Block a user