aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2003-09-25 18:11:19 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2003-09-25 18:11:19 +0000
commitcb967da5243c3fb5e9134d10349b7268bfa672b9 (patch)
treeb9822ac347b37f0d1902b3559a49f92e991c61aa /gcc/cgraphunit.c
parent1992534f5dbf560289ae877b9ee96620949a745c (diff)
downloadgcc-cb967da5243c3fb5e9134d10349b7268bfa672b9.zip
gcc-cb967da5243c3fb5e9134d10349b7268bfa672b9.tar.gz
gcc-cb967da5243c3fb5e9134d10349b7268bfa672b9.tar.bz2
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
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 4ed3f70..ded2f19 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -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. */