aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2007-11-02 07:12:30 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2007-11-02 07:12:30 -0400
commitc4e622b658b4cdf6cf75c783aade44f53ce0b4b6 (patch)
treec14fee97147f36fd4337182298671d592eaed5cb /gcc/cgraph.c
parentef3b7b176100495d541b40439b1f3b9e672d071d (diff)
downloadgcc-c4e622b658b4cdf6cf75c783aade44f53ce0b4b6.zip
gcc-c4e622b658b4cdf6cf75c783aade44f53ce0b4b6.tar.gz
gcc-c4e622b658b4cdf6cf75c783aade44f53ce0b4b6.tar.bz2
langhooks.h (struct lang_hooks_for_callgraph): Remove third argument from function pointer ANALYZE_EXPR.
* langhooks.h (struct lang_hooks_for_callgraph): Remove third argument from function pointer ANALYZE_EXPR. Update all users. * cgraph.c (debug_cgraph_node): New. (debug_cgraph): New. From-SVN: r129845
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c27
1 files changed, 25 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index e8ceb13..8c7bc5d 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -657,7 +657,9 @@ cgraph_node_name (struct cgraph_node *node)
const char * const cgraph_availability_names[] =
{"unset", "not_available", "overwrittable", "available", "local"};
-/* Dump given cgraph node. */
+
+/* Dump call graph node NODE to file F. */
+
void
dump_cgraph_node (FILE *f, struct cgraph_node *node)
{
@@ -742,7 +744,17 @@ dump_cgraph_node (FILE *f, struct cgraph_node *node)
fprintf (f, "\n");
}
-/* Dump the callgraph. */
+
+/* Dump call graph node NODE to stderr. */
+
+void
+debug_cgraph_node (struct cgraph_node *node)
+{
+ dump_cgraph_node (stderr, node);
+}
+
+
+/* Dump the callgraph to file F. */
void
dump_cgraph (FILE *f)
@@ -754,7 +766,18 @@ dump_cgraph (FILE *f)
dump_cgraph_node (f, node);
}
+
+/* Dump the call graph to stderr. */
+
+void
+debug_cgraph (void)
+{
+ dump_cgraph (stderr);
+}
+
+
/* Set the DECL_ASSEMBLER_NAME and update cgraph hashtables. */
+
void
change_decl_assembler_name (tree decl, tree name)
{