diff options
Diffstat (limited to 'gdb/expop.h')
-rw-r--r-- | gdb/expop.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gdb/expop.h b/gdb/expop.h index b808c0f..7c0768c 100644 --- a/gdb/expop.h +++ b/gdb/expop.h @@ -1713,6 +1713,33 @@ protected: override; }; +/* Implement the 'this' expression. */ +class op_this_operation + : public tuple_holding_operation<> +{ +public: + + using tuple_holding_operation::tuple_holding_operation; + + value *evaluate (struct type *expect_type, + struct expression *exp, + enum noside noside) override + { + return value_of_this (exp->language_defn); + } + + enum exp_opcode opcode () const override + { return OP_THIS; } + +protected: + + void do_generate_ax (struct expression *exp, + struct agent_expr *ax, + struct axs_value *value, + struct type *cast_type) + override; +}; + } /* namespace expr */ #endif /* EXPOP_H */ |