diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-18 12:18:12 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-18 12:18:12 +0000 |
commit | f1c8b4d7a477f2734ba9fb637d62ad19758dac1a (patch) | |
tree | a5a2310e101e4acec88120d4acdb8a49b8cf9bb3 /gcc/ipa-cp.c | |
parent | a65b2b5ab34e61e0c655454ad57de6aeff08b0c1 (diff) | |
download | gcc-f1c8b4d7a477f2734ba9fb637d62ad19758dac1a.tar.gz |
remove nolonger needed {cgraph,varpool}_node_{,asm_}name () functions
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204946 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 72a96d22c17..97adbbd0f24 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -381,7 +381,7 @@ print_all_lattices (FILE * f, bool dump_sources, bool dump_benefits) struct ipa_node_params *info; info = IPA_NODE_REF (node); - fprintf (f, " Node: %s/%i:\n", cgraph_node_name (node), + fprintf (f, " Node: %s/%i:\n", node->name (), node->order); count = ipa_get_param_count (info); for (i = 0; i < count; i++) @@ -432,7 +432,7 @@ determine_versionability (struct cgraph_node *node) if (reason && dump_file && !node->alias && !node->thunk.thunk_p) fprintf (dump_file, "Function %s/%i is not versionable, reason: %s.\n", - cgraph_node_name (node), node->order, reason); + node->name (), node->order, reason); node->local.versionable = (reason == NULL); } @@ -504,7 +504,7 @@ ipcp_cloning_candidate_p (struct cgraph_node *node) if (dump_file) fprintf (dump_file, "Not considering %s for cloning; " "-fipa-cp-clone disabled.\n", - cgraph_node_name (node)); + node->name ()); return false; } @@ -513,7 +513,7 @@ ipcp_cloning_candidate_p (struct cgraph_node *node) if (dump_file) fprintf (dump_file, "Not considering %s for cloning; " "optimizing it for size.\n", - cgraph_node_name (node)); + node->name ()); return false; } @@ -524,7 +524,7 @@ ipcp_cloning_candidate_p (struct cgraph_node *node) { if (dump_file) fprintf (dump_file, "Considering %s for cloning; code might shrink.\n", - cgraph_node_name (node)); + node->name ()); return true; } @@ -538,7 +538,7 @@ ipcp_cloning_candidate_p (struct cgraph_node *node) if (dump_file) fprintf (dump_file, "Considering %s for cloning; " "usually called directly.\n", - cgraph_node_name (node)); + node->name ()); return true; } } @@ -546,12 +546,12 @@ ipcp_cloning_candidate_p (struct cgraph_node *node) { if (dump_file) fprintf (dump_file, "Not considering %s for cloning; no hot calls.\n", - cgraph_node_name (node)); + node->name ()); return false; } if (dump_file) fprintf (dump_file, "Considering %s for cloning.\n", - cgraph_node_name (node)); + node->name ()); return true; } @@ -712,7 +712,7 @@ initialize_node_lattices (struct cgraph_node *node) if (dump_file && (dump_flags & TDF_DETAILS) && !node->alias && !node->thunk.thunk_p) fprintf (dump_file, "Marking all lattices of %s/%i as %s\n", - cgraph_node_name (node), node->order, + node->name (), node->order, disable ? "BOTTOM" : "VARIABLE"); } @@ -1817,7 +1817,7 @@ estimate_local_effects (struct cgraph_node *node) if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "\nEstimating effects for %s/%i, base_time: %i.\n", - cgraph_node_name (node), node->order, base_time); + node->name (), node->order, base_time); always_const = gather_context_independent_values (info, &known_csts, &known_binfos, &known_aggs, @@ -2506,14 +2506,14 @@ dump_profile_updates (struct cgraph_node *orig_node, for (cs = new_node->callees; cs ; cs = cs->next_callee) fprintf (dump_file, " edge to %s has count " HOST_WIDE_INT_PRINT_DEC "\n", - cgraph_node_name (cs->callee), (HOST_WIDE_INT) cs->count); + cs->callee->name (), (HOST_WIDE_INT) cs->count); fprintf (dump_file, " setting count of the original node to " HOST_WIDE_INT_PRINT_DEC "\n", (HOST_WIDE_INT) orig_node->count); for (cs = orig_node->callees; cs ; cs = cs->next_callee) fprintf (dump_file, " edge to %s is left with " HOST_WIDE_INT_PRINT_DEC "\n", - cgraph_node_name (cs->callee), (HOST_WIDE_INT) cs->count); + cs->callee->name (), (HOST_WIDE_INT) cs->count); } /* After a specialized NEW_NODE version of ORIG_NODE has been created, update @@ -2544,7 +2544,7 @@ update_profiling_info (struct cgraph_node *orig_node, fprintf (dump_file, " Problem: node %s/%i has too low count " HOST_WIDE_INT_PRINT_DEC " while the sum of incoming " "counts is " HOST_WIDE_INT_PRINT_DEC "\n", - cgraph_node_name (orig_node), orig_node->order, + orig_node->name (), orig_node->order, (HOST_WIDE_INT) orig_node_count, (HOST_WIDE_INT) (orig_sum + new_sum)); @@ -2683,7 +2683,7 @@ create_specialized_node (struct cgraph_node *node, if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, " the new node is %s/%i.\n", - cgraph_node_name (new_node), new_node->order); + new_node->name (), new_node->order); if (aggvals) ipa_dump_agg_replacement_values (dump_file, aggvals); } @@ -3235,9 +3235,9 @@ perhaps_add_new_callers (struct cgraph_node *node, struct ipcp_value *val) if (dump_file) fprintf (dump_file, " - adding an extra caller %s/%i" " of %s/%i\n", - xstrdup (cgraph_node_name (cs->caller)), + xstrdup (cs->caller->name ()), cs->caller->order, - xstrdup (cgraph_node_name (val->spec_node)), + xstrdup (val->spec_node->name ()), val->spec_node->order); cgraph_redirect_edge_callee (cs, val->spec_node); @@ -3342,7 +3342,7 @@ decide_about_value (struct cgraph_node *node, int index, HOST_WIDE_INT offset, if (dump_file) fprintf (dump_file, " Creating a specialized node of %s/%i.\n", - cgraph_node_name (node), node->order); + node->name (), node->order); callers = gather_edges_for_value (val, caller_count); kv = known_csts.copy (); @@ -3379,7 +3379,7 @@ decide_whether_version_node (struct cgraph_node *node) if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "\nEvaluating opportunities for %s/%i.\n", - cgraph_node_name (node), node->order); + node->name (), node->order); gather_context_independent_values (info, &known_csts, &known_binfos, info->do_clone_for_all_contexts ? &known_aggs @@ -3422,7 +3422,7 @@ decide_whether_version_node (struct cgraph_node *node) if (dump_file) fprintf (dump_file, " - Creating a specialized node of %s/%i " - "for all known contexts.\n", cgraph_node_name (node), + "for all known contexts.\n", node->name (), node->order); callers = collect_callers_of_node (node); @@ -3514,7 +3514,7 @@ identify_dead_nodes (struct cgraph_node *node) for (v = node; v ; v = ((struct ipa_dfs_info *) v->aux)->next_cycle) if (IPA_NODE_REF (v)->node_dead) fprintf (dump_file, " Marking node as dead: %s/%i.\n", - cgraph_node_name (v), v->order); + v->name (), v->order); } } |