* tree.h: Remove the prototype for function_args_count.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146312
138bc75d-0d04-0410-961f-
82ee72b054a4
2009-04-18 Kazu Hirata <kazu@codesourcery.com>
+ * tree.c (function_args_count): Remove.
+ * tree.h: Remove the prototype for function_args_count.
+
+2009-04-18 Kazu Hirata <kazu@codesourcery.com>
+
* tree-iterator.c (expr_only): Remove.
* tree.h: Remove the prototype for expr_only.
return (t != NULL_TREE);
}
-/* Return the number of arguments that a function has. */
-
-int
-function_args_count (tree fntype)
-{
- function_args_iterator args_iter;
- tree t;
- int num = 0;
-
- if (fntype)
- {
- FOREACH_FUNCTION_ARGS(fntype, t, args_iter)
- {
- num++;
- }
- }
-
- return num;
-}
-
/* If BLOCK is inlined from an __attribute__((__artificial__))
routine, return pointer to location from where it has been
called. */
extern const char *get_name (tree);
extern bool stdarg_p (tree);
extern bool prototype_p (tree);
-extern int function_args_count (tree);
extern bool auto_var_in_fn_p (const_tree, const_tree);
\f
/* In gimplify.c */