aboutsummaryrefslogtreecommitdiff
path: root/gdb/parse.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-08 07:27:57 -0700
committerTom Tromey <tom@tromey.com>2021-03-08 07:28:43 -0700
commitb9d06571f9d1c39edb0d3e976ff78586d7c436b0 (patch)
treeabc7da1b3279073cfe1385fddd1f4fdcf45a2b23 /gdb/parse.c
parent79ab486e97be04fb719b3ef91ea3e2b3c9c345c8 (diff)
downloadgdb-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.c10
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. */