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:43 -0700 |
commit | b9d06571f9d1c39edb0d3e976ff78586d7c436b0 (patch) | |
tree | abc7da1b3279073cfe1385fddd1f4fdcf45a2b23 /gdb/expression.h | |
parent | 79ab486e97be04fb719b3ef91ea3e2b3c9c345c8 (diff) | |
download | fsf-binutils-gdb-b9d06571f9d1c39edb0d3e976ff78586d7c436b0.zip fsf-binutils-gdb-b9d06571f9d1c39edb0d3e976ff78586d7c436b0.tar.gz fsf-binutils-gdb-b9d06571f9d1c39edb0d3e976ff78586d7c436b0.tar.bz2 |
Inline expression constructor
The struct expression constructor no longer does any real work, so
this inlines it. The default destructor can also be used now as well.
gdb/ChangeLog
2021-03-08 Tom Tromey <tom@tromey.com>
* parse.c (expression::expression, expression::~expression):
Remove.
* expression.h (struct expression): Inline constructor. Remove
destructor.
Diffstat (limited to 'gdb/expression.h')
-rw-r--r-- | gdb/expression.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/expression.h b/gdb/expression.h index eae986a..5c5371e 100644 --- a/gdb/expression.h +++ b/gdb/expression.h @@ -196,8 +196,12 @@ make_operation (Arg... args) struct expression { - expression (const struct language_defn *, struct gdbarch *); - ~expression (); + expression (const struct language_defn *lang, struct gdbarch *arch) + : language_defn (lang), + gdbarch (arch) + { + } + DISABLE_COPY_AND_ASSIGN (expression); /* Return the opcode for the outermost sub-expression of this |