Introduce unop_alignof_operation

This adds class unop_alignof_operation, which implements UNOP_ALIGNOF.

gdb/ChangeLog
2021-03-08  Tom Tromey  <tom@tromey.com>

	* expop.h (class unop_alignof_operation): New.
	* eval.c (eval_op_alignof): No longer static.
This commit is contained in:
Tom Tromey
2021-03-08 07:27:57 -07:00
parent 85d23bda83
commit ae4bb61e19
3 changed files with 31 additions and 1 deletions

View File

@@ -1881,7 +1881,7 @@ eval_op_ind (struct type *expect_type, struct expression *exp,
/* A helper function for UNOP_ALIGNOF. */
static struct value *
struct value *
eval_op_alignof (struct type *expect_type, struct expression *exp,
enum noside noside,
struct value *arg1)