diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-02 11:12:30 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-02 11:12:30 +0000 |
commit | e83c4efa64cbd5d92edd214404231cb561e59213 (patch) | |
tree | c14fee97147f36fd4337182298671d592eaed5cb /gcc/cgraph.c | |
parent | 864f22674a47236b467dd7edb91d0e7647aef80b (diff) | |
download | gcc-e83c4efa64cbd5d92edd214404231cb561e59213.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129845 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index e8ceb138d8a..8c7bc5da442 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) { |