diff options
author | Paulo Matos <pmatos@broadcom.com> | 2013-10-16 10:09:17 +0000 |
---|---|---|
committer | Paulo Matos <pmatos@gcc.gnu.org> | 2013-10-16 12:09:17 +0200 |
commit | 5806f4814cd8cd4b6677bde313bd26d5b29ed073 (patch) | |
tree | 18b9fdf2590d9183a3aedbda66687c9d2c9b31c8 /gcc/tree-ssa-dom.c | |
parent | 82c9df56ca621a73781b266d02b589d68a2acf8d (diff) | |
download | gcc-5806f4814cd8cd4b6677bde313bd26d5b29ed073.zip gcc-5806f4814cd8cd4b6677bde313bd26d5b29ed073.tar.gz gcc-5806f4814cd8cd4b6677bde313bd26d5b29ed073.tar.bz2 |
tree-core.h (tree_code_name): Remove.
gcc/
* tree-core.h (tree_code_name): Remove.
* tree.h (get_tree_code_name): New prototype.
* tree.c (tree_code_name): Make static.
(get_tree_code_name): New function.
(dump_tree_statistics, tree_check_failed, tree_not_check_failed,
tree_class_check_failed, tree_range_check_failed,
tree_not_class_check_failed, omp_clause_check_failed,
tree_contains_struct_check_failed, tree_operand_check_failed): Use new
wrapper get_tree_code_name instead of calling tree_code_name directly.
* tree-vrp.c (dump_asserts_for): Likewise.
* tree-dump.c (dequeue_and_dump): Likewise.
* tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
* tree-pretty-print.h (pp_unsupported_tree): Likewise.
* lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
* tree-ssa-dom.c (print_expr_hash_elt): Likewise.
* gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
dump_gimple_omp_for): Likewise.
* tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
* tree-ssa-pre.c (print_pre_expr): Likewise.
* ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
* print-tree.c (print_node_brief, print_node): Likewise.
* gimple.c (gimple_check_failed): Likewise.
* lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
* config/frv/frv.c (frv_init_cumulative_args): Likewise.
* config/mep/mep.c (mep_validate_vliw): Likewise.
* config/iq2000/iq2000.c (init_cumulative_args): Likewise.
* config/rs6000/rs6000.c (init_cumulative_args): Likewise.
gcc/cp/
* error.c (code_to_string): Use new wrapper get_tree_code_name.
* cxx-pretty-print.c (pp_cxx_assignment_operator): Likewise.
* pt.c (tsubst): Likewise.
* semantics.c (cxx_eval_constant_expression,
potential_constant_expression_1): Likewise.
* mangle.c (MANGLE_TRACE_TREE, dump_substitution_candidates,
add_substitution, find_substitution): Likewise.
From-SVN: r203695
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r-- | gcc/tree-ssa-dom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 6292bb0..b2c7e14 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -639,18 +639,18 @@ print_expr_hash_elt (FILE * stream, const struct expr_hash_elt *element) break; case EXPR_UNARY: - fprintf (stream, "%s ", tree_code_name[element->expr.ops.unary.op]); + fprintf (stream, "%s ", get_tree_code_name (element->expr.ops.unary.op)); print_generic_expr (stream, element->expr.ops.unary.opnd, 0); break; case EXPR_BINARY: print_generic_expr (stream, element->expr.ops.binary.opnd0, 0); - fprintf (stream, " %s ", tree_code_name[element->expr.ops.binary.op]); + fprintf (stream, " %s ", get_tree_code_name (element->expr.ops.binary.op)); print_generic_expr (stream, element->expr.ops.binary.opnd1, 0); break; case EXPR_TERNARY: - fprintf (stream, " %s <", tree_code_name[element->expr.ops.ternary.op]); + fprintf (stream, " %s <", get_tree_code_name (element->expr.ops.ternary.op)); print_generic_expr (stream, element->expr.ops.ternary.opnd0, 0); fputs (", ", stream); print_generic_expr (stream, element->expr.ops.ternary.opnd1, 0); |