From 96db551d0627d1a3dcb5d0117a8b72e6c2658e0e Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 8 Mar 2021 07:27:57 -0700 Subject: [PATCH] Merge namespace scopes in eval.c The big deletion patch left some identical namespace scopes sitting next to one another. This patch removes the redundant "namespace expr"s. gdb/ChangeLog 2021-03-08 Tom Tromey * eval.c: Merge "namespace" scopes. --- gdb/ChangeLog | 4 ++++ gdb/eval.c | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 212f61da485..b69e7ae7729 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2021-03-08 Tom Tromey + + * eval.c: Merge "namespace" scopes. + 2021-03-08 Tom Tromey * parser-defs.h (struct expr_builder) : Inline. diff --git a/gdb/eval.c b/gdb/eval.c index 4c602235862..3ea814f0677 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -2639,11 +2639,6 @@ unop_memval_type_operation::evaluate_for_address (struct expression *exp, std::get<1> (m_storage)->evaluate (nullptr, exp, noside)); } -} - -namespace expr -{ - value * var_value_operation::evaluate_for_address (struct expression *exp, enum noside noside) @@ -2826,11 +2821,6 @@ var_value_operation::evaluate_for_sizeof (struct expression *exp, return evaluate_subexp_for_sizeof_base (exp, type); } -} - -namespace expr -{ - value * var_msym_value_operation::evaluate_for_cast (struct type *to_type, struct expression *exp, -- 2.30.2