aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorTrevor Saunders <tsaunders@mozilla.com>2013-11-18 12:18:12 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2013-11-18 12:18:12 +0000
commitfec39fa6b010bb0a37c93412e8f147668c558f98 (patch)
treea5a2310e101e4acec88120d4acdb8a49b8cf9bb3 /gcc/ipa-prop.c
parent1f66e10e20b9b281a77ff85b2db40574524054ac (diff)
downloadgcc-fec39fa6b010bb0a37c93412e8f147668c558f98.zip
gcc-fec39fa6b010bb0a37c93412e8f147668c558f98.tar.gz
gcc-fec39fa6b010bb0a37c93412e8f147668c558f98.tar.bz2
remove nolonger needed {cgraph,varpool}_node_{,asm_}name () functions
From-SVN: r204946
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index eb464e4..d673381 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -318,7 +318,7 @@ ipa_print_node_jump_functions (FILE *f, struct cgraph_node *node)
{
struct cgraph_edge *cs;
- fprintf (f, " Jump functions of caller %s/%i:\n", cgraph_node_name (node),
+ fprintf (f, " Jump functions of caller %s/%i:\n", node->name (),
node->order);
for (cs = node->callees; cs; cs = cs->next_callee)
{
@@ -326,8 +326,8 @@ ipa_print_node_jump_functions (FILE *f, struct cgraph_node *node)
continue;
fprintf (f, " callsite %s/%i -> %s/%i : \n",
- xstrdup (cgraph_node_name (node)), node->order,
- xstrdup (cgraph_node_name (cs->callee)),
+ xstrdup (node->name ()), node->order,
+ xstrdup (cs->callee->name ()),
cs->callee->order);
ipa_print_node_jump_functions_for_edge (f, cs);
}
@@ -2426,7 +2426,7 @@ ipa_make_edge_direct_to_target (struct cgraph_edge *ie, tree target)
if (dump_file)
fprintf (dump_file, "ipa-prop: Discovered direct call to non-function"
" in %s/%i, making it unreachable.\n",
- cgraph_node_name (ie->caller), ie->caller->order);
+ ie->caller->name (), ie->caller->order);
target = builtin_decl_implicit (BUILT_IN_UNREACHABLE);
callee = cgraph_get_create_node (target);
unreachable = true;
@@ -2452,9 +2452,9 @@ ipa_make_edge_direct_to_target (struct cgraph_edge *ie, tree target)
if (dump_file)
fprintf (dump_file, "ipa-prop: Discovered call to a known target "
"(%s/%i -> %s/%i) but can not refer to it. Giving up.\n",
- xstrdup (cgraph_node_name (ie->caller)),
+ xstrdup (ie->caller->name ()),
ie->caller->order,
- xstrdup (cgraph_node_name (ie->callee)),
+ xstrdup (ie->callee->name ()),
ie->callee->order);
return NULL;
}
@@ -2471,9 +2471,9 @@ ipa_make_edge_direct_to_target (struct cgraph_edge *ie, tree target)
fprintf (dump_file, "ipa-prop: Discovered %s call to a known target "
"(%s/%i -> %s/%i), for stmt ",
ie->indirect_info->polymorphic ? "a virtual" : "an indirect",
- xstrdup (cgraph_node_name (ie->caller)),
+ xstrdup (ie->caller->name ()),
ie->caller->order,
- xstrdup (cgraph_node_name (callee)),
+ xstrdup (callee->name ()),
callee->order);
if (ie->call_stmt)
print_gimple_stmt (dump_file, ie->call_stmt, 2, TDF_SLIM);
@@ -2536,8 +2536,8 @@ remove_described_reference (symtab_node *symbol, struct ipa_cst_ref_desc *rdesc)
ipa_remove_reference (to_del);
if (dump_file)
fprintf (dump_file, "ipa-prop: Removed a reference from %s/%i to %s.\n",
- xstrdup (cgraph_node_name (origin->caller)),
- origin->caller->order, xstrdup (symtab_node_name (symbol)));
+ xstrdup (origin->caller->name ()),
+ origin->caller->order, xstrdup (symbol->name ()));
return true;
}
@@ -2867,9 +2867,9 @@ propagate_controlled_uses (struct cgraph_edge *cs)
if (dump_file)
fprintf (dump_file, "ipa-prop: Removing cloning-created "
"reference from %s/%i to %s/%i.\n",
- xstrdup (cgraph_node_name (new_root)),
+ xstrdup (new_root->name ()),
new_root->order,
- xstrdup (cgraph_node_name (n)), n->order);
+ xstrdup (n->name ()), n->order);
ipa_remove_reference (ref);
}
}
@@ -2909,9 +2909,9 @@ propagate_controlled_uses (struct cgraph_edge *cs)
fprintf (dump_file, "ipa-prop: Removing "
"cloning-created reference "
"from %s/%i to %s/%i.\n",
- xstrdup (cgraph_node_name (clone)),
+ xstrdup (clone->name ()),
clone->order,
- xstrdup (cgraph_node_name (n)),
+ xstrdup (n->name ()),
n->order);
ipa_remove_reference (ref);
}
@@ -3295,7 +3295,7 @@ ipa_print_node_params (FILE *f, struct cgraph_node *node)
return;
info = IPA_NODE_REF (node);
fprintf (f, " function %s/%i parameter descriptors:\n",
- cgraph_node_name (node), node->order);
+ node->name (), node->order);
count = ipa_get_param_count (info);
for (i = 0; i < count; i++)
{
@@ -4553,7 +4553,7 @@ ipcp_transform_function (struct cgraph_node *node)
if (dump_file)
fprintf (dump_file, "Modification phase of node %s/%i\n",
- cgraph_node_name (node), node->order);
+ node->name (), node->order);
aggval = ipa_get_agg_replacements_for_node (node);
if (!aggval)