aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2004-11-08 07:42:56 +0000
committerBen Elliston <bje@au.ibm.com>2004-11-08 07:42:56 +0000
commit9eed5fde73b2f3a0dfac41e794a0cd3fb07235c6 (patch)
tree3ded9c6619acf17ba3cafe806dc45640f501fbaa /gcc/cgraph.c
parent6c6d14beeab4d5ac344ed472f3af3c6d230056cd (diff)
* cgraph.h (cgraph_calls_p): Remove.
* cgraph.c (cgraph_calls_p): Likewise. * varray.h (varray_copy): Remove. * varray.c (varray_copy): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@90261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index edde1a978d3..0908b6a02eb 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -386,21 +386,6 @@ cgraph_mark_needed_node (struct cgraph_node *node)
cgraph_mark_reachable_node (node);
}
-/* Return true when CALLER_DECL calls CALLEE_DECL. */
-
-bool
-cgraph_calls_p (tree caller_decl, tree callee_decl)
-{
- struct cgraph_node *caller = cgraph_node (caller_decl);
- struct cgraph_node *callee = cgraph_node (callee_decl);
- struct cgraph_edge *edge;
-
- for (edge = callee->callers; edge && (edge)->caller != caller;
- edge = (edge->next_caller))
- continue;
- return edge != NULL;
-}
-
/* Return local info for the compiled function. */
struct cgraph_local_info *