aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/expression.h8
-rw-r--r--gdb/parse.c10
3 files changed, 13 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 97f029f..e2f6368 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2021-03-08 Tom Tromey <tom@tromey.com>
+ * parse.c (expression::expression, expression::~expression):
+ Remove.
+ * expression.h (struct expression): Inline constructor. Remove
+ destructor.
+
+2021-03-08 Tom Tromey <tom@tromey.com>
+
* std-operator.def (BINOP_END): Remove.
* p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
* go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
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
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. */