cgraph.h (cgraph_remove_edge): Declare.
* cgraph.h (cgraph_remove_edge): Declare. * cgraph.c (cgraph_remove_edge): Make extern. * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge instead of cgraph_remove_call. From-SVN: r71784
This commit is contained in:
parent
1992534f5d
commit
cb967da524
4 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
2003-09-25 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* cgraph.h (cgraph_remove_edge): Declare.
|
||||
* cgraph.c (cgraph_remove_edge): Make extern.
|
||||
* cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
|
||||
instead of cgraph_remove_call.
|
||||
|
||||
2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* objc/objc-act.c (gen_declaration_1): Fix printf format.
|
||||
|
|
|
@ -68,7 +68,6 @@ static GTY(()) struct cgraph_varpool_node *cgraph_varpool_nodes;
|
|||
|
||||
static struct cgraph_edge *create_edge (struct cgraph_node *,
|
||||
struct cgraph_node *);
|
||||
static void cgraph_remove_edge (struct cgraph_node *, struct cgraph_node *);
|
||||
static hashval_t hash_node (const void *);
|
||||
static int eq_node (const void *, const void *);
|
||||
|
||||
|
@ -180,7 +179,7 @@ create_edge (struct cgraph_node *caller, struct cgraph_node *callee)
|
|||
|
||||
/* Remove the edge from CALLER to CALLEE in the cgraph. */
|
||||
|
||||
static void
|
||||
void
|
||||
cgraph_remove_edge (struct cgraph_node *caller, struct cgraph_node *callee)
|
||||
{
|
||||
struct cgraph_edge **edge, **edge2;
|
||||
|
|
|
@ -150,6 +150,7 @@ extern GTY(()) struct cgraph_varpool_node *cgraph_varpool_nodes_queue;
|
|||
|
||||
/* In cgraph.c */
|
||||
void dump_cgraph (FILE *);
|
||||
void cgraph_remove_edge (struct cgraph_node *, struct cgraph_node *);
|
||||
void cgraph_remove_call (tree, tree);
|
||||
void cgraph_remove_node (struct cgraph_node *);
|
||||
struct cgraph_edge *cgraph_record_call (tree, tree);
|
||||
|
|
|
@ -183,7 +183,7 @@ cgraph_finalize_function (tree decl, bool nested)
|
|||
memset (&node->rtl, 0, sizeof (node->rtl));
|
||||
node->analyzed = false;
|
||||
while (node->callees)
|
||||
cgraph_remove_call (node->decl, node->callees->callee->decl);
|
||||
cgraph_remove_edge (node, node->callees->callee);
|
||||
|
||||
/* We may need to re-queue the node for assembling in case
|
||||
we already proceeded it and ignored as not needed. */
|
||||
|
|
Loading…
Add table
Reference in a new issue