diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-06-29 14:28:24 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-06-29 14:28:24 +0000 |
commit | 79a2e690b4654e88437aa40627f24068dc5216f5 (patch) | |
tree | 7f3c0688b56f3b43464c3d6023a94fcb4c03812d /gcc/cp/cxx-pretty-print.c | |
parent | 9a82bd058df19d15cfbd0c16a09a6ba0c5c5cfa7 (diff) | |
download | gcc-79a2e690b4654e88437aa40627f24068dc5216f5.zip gcc-79a2e690b4654e88437aa40627f24068dc5216f5.tar.gz gcc-79a2e690b4654e88437aa40627f24068dc5216f5.tar.bz2 |
class.c (finish_struct): Use OVL_P.
* class.c (finish_struct): Use OVL_P.
(get_vfield_name): Measure constructor_name length.
* cp-tree.h (SET_CLASS_TYPE_P): Add RECORD_OR_UNION_CHECK.
(NON_UNION_CLASS_TYPE_P): Check RECORD_TYPE up front.
* cxx-pretty-print.c (is_destructor_name): Delete.
(pp_cxx_unqualified_id): Remove bogus destructor name checking.
* decl.c (grokfndecl): Move cheap checks first when looking for
implicit extern cness.
From-SVN: r249788
Diffstat (limited to 'gcc/cp/cxx-pretty-print.c')
-rw-r--r-- | gcc/cp/cxx-pretty-print.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c index 5398e3d..edaee04 100644 --- a/gcc/cp/cxx-pretty-print.c +++ b/gcc/cp/cxx-pretty-print.c @@ -88,14 +88,6 @@ pp_cxx_separate_with (cxx_pretty_printer *pp, int c) /* Expressions. */ -static inline bool -is_destructor_name (tree name) -{ - return name == complete_dtor_identifier - || name == base_dtor_identifier - || name == deleting_dtor_identifier; -} - /* conversion-function-id: operator conversion-type-id @@ -162,16 +154,7 @@ pp_cxx_unqualified_id (cxx_pretty_printer *pp, tree t) else if (IDENTIFIER_CONV_OP_P (t)) pp_cxx_conversion_function_id (pp, t); else - { - if (is_destructor_name (t)) - { - pp_complement (pp); - /* FIXME: Why is this necessary? */ - if (TREE_TYPE (t)) - t = constructor_name (TREE_TYPE (t)); - } - pp_cxx_tree_identifier (pp, t); - } + pp_cxx_tree_identifier (pp, t); break; case TEMPLATE_ID_EXPR: |