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/parse.c | |
parent | 79ab486e97be04fb719b3ef91ea3e2b3c9c345c8 (diff) | |
download | gdb-b9d06571f9d1c39edb0d3e976ff78586d7c436b0.zip gdb-b9d06571f9d1c39edb0d3e976ff78586d7c436b0.tar.gz 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/parse.c')
-rw-r--r-- | gdb/parse.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index 96dd5db..d068c94 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -105,16 +105,6 @@ expr_builder::release () return std::move (expout); } -expression::expression (const struct language_defn *lang, struct gdbarch *arch) - : language_defn (lang), - gdbarch (arch) -{ -} - -expression::~expression () -{ -} - /* Return the type of MSYMBOL, a minimal symbol of OBJFILE. If ADDRESS_P is not NULL, set it to the MSYMBOL's resolved address. */ |