diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2013-08-04 16:47:42 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2013-08-04 16:47:42 +0000 |
commit | 137a1a27e25efa3c13842c1c91a55947ed005412 (patch) | |
tree | a9fb7dfe70a003cc0c4e1eece6d35bd2539f1fee /gcc/cp/error.c | |
parent | 8ee9fbe1976e0e237ac5defc6ee398f9f5f77c9e (diff) | |
download | gcc-137a1a27e25efa3c13842c1c91a55947ed005412.zip gcc-137a1a27e25efa3c13842c1c91a55947ed005412.tar.gz gcc-137a1a27e25efa3c13842c1c91a55947ed005412.tar.bz2 |
pretty-print.h (pp_bar_bar): New.
* pretty-print.h (pp_bar_bar): New.
(pp_ampersand_ampersand): Likewise.
(pp_less_equal): Likewise.
(pp_greater_equal): Likewise.
* gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
printer functions instead of pp_string or operators and punctuators.
(dump_gimple_call): Likewise.
(dump_gimple_omp_for): Likewise.
(dump_gimple_transaction): Likewise.
(dump_gimple_phi): Likewise.
(pp_gimple_stmt_1): Likewise.
* sched-vis.c (print_insn): Likewise.
* tree-mudflap.c (mf_varname_tree): Likewise.
* tree-pretty-print.c (dump_block_node): Likewise.
(dump_generic_node): Likewise.
c-family/
* c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
printer functions instead of pp_string or operators and punctuators.
(dump_generic_ada_node): Likewise.
* c-pretty-print.c (pp_c_type_specifier): Likewise.
(pp_c_relational_expression): Likewise.
(pp_c_logical_or_expression): Likewise.
cp/
* error.c (dump_type_prefix): Use specialized pretty printer
functions instead of pp_string or operators and punctuators.
(dump_decl): Likewise.
(dump_expr): Likewise.
From-SVN: r201474
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index a7fc9cc..887a6ee 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -714,7 +714,7 @@ dump_type_prefix (tree t, int flags) else if (TREE_CODE (t) == REFERENCE_TYPE) { if (TYPE_REF_IS_RVALUE (t)) - pp_string (cxx_pp, "&&"); + pp_ampersand_ampersand (cxx_pp); else pp_ampersand (cxx_pp); } @@ -1060,7 +1060,7 @@ dump_decl (tree t, int flags) case SCOPE_REF: dump_type (TREE_OPERAND (t, 0), flags); - pp_string (cxx_pp, "::"); + pp_colon_colon (cxx_pp); dump_decl (TREE_OPERAND (t, 1), TFF_UNQUALIFIED_NAME); break; @@ -1075,9 +1075,9 @@ dump_decl (tree t, int flags) dump_decl (ARRAY_NOTATION_ARRAY (t), flags | TFF_EXPR_IN_PARENS); pp_cxx_left_bracket (cxx_pp); dump_decl (ARRAY_NOTATION_START (t), flags | TFF_EXPR_IN_PARENS); - pp_string (cxx_pp, ":"); + pp_colon (cxx_pp); dump_decl (ARRAY_NOTATION_LENGTH (t), flags | TFF_EXPR_IN_PARENS); - pp_string (cxx_pp, ":"); + pp_colon (cxx_pp); dump_decl (ARRAY_NOTATION_STRIDE (t), flags | TFF_EXPR_IN_PARENS); pp_cxx_right_bracket (cxx_pp); break; @@ -2072,9 +2072,9 @@ dump_expr (tree t, int flags) dump_expr (ARRAY_NOTATION_ARRAY (t), flags | TFF_EXPR_IN_PARENS); pp_cxx_left_bracket (cxx_pp); dump_expr (ARRAY_NOTATION_START (t), flags | TFF_EXPR_IN_PARENS); - pp_string (cxx_pp, ":"); + pp_colon (cxx_pp); dump_expr (ARRAY_NOTATION_LENGTH (t), flags | TFF_EXPR_IN_PARENS); - pp_string (cxx_pp, ":"); + pp_colon (cxx_pp); dump_expr (ARRAY_NOTATION_STRIDE (t), flags | TFF_EXPR_IN_PARENS); pp_cxx_right_bracket (cxx_pp); break; |