diff options
author | Diego Novillo <dnovillo@gcc.gnu.org> | 2009-05-27 13:55:59 -0400 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2009-05-27 13:55:59 -0400 |
commit | ac80ba07e96194ec205fc76bb283854772794d6a (patch) | |
tree | 7ef0190df8aeb10b81009f52925b444f781bba6c /gcc/tree-ssa-live.c | |
parent | d1803a17f98b83c34faf007806cc85f1847c71f7 (diff) | |
download | gcc-ac80ba07e96194ec205fc76bb283854772794d6a.tar.gz |
tree-ssa-live.c (dump_scope_block): Document arguments.
* tree-ssa-live.c (dump_scope_block): Document arguments.
(dump_scope_blocks): Document.
(debug_scope_blocks): New.
* tree-flow.h (debug_scope_blocks): Declare.
From-SVN: r147923
Diffstat (limited to 'gcc/tree-ssa-live.c')
-rw-r--r-- | gcc/tree-ssa-live.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gcc/tree-ssa-live.c b/gcc/tree-ssa-live.c index 0673fab851f..3c317661388 100644 --- a/gcc/tree-ssa-live.c +++ b/gcc/tree-ssa-live.c @@ -552,7 +552,9 @@ mark_all_vars_used (tree *expr_p, void *data) walk_tree (expr_p, mark_all_vars_used_1, data, NULL); } -/* Dump scope blocks. */ + +/* Dump scope blocks starting at SCOPE to FILE. INDENT is the + indentation level and FLAGS is as in print_generic_expr. */ static void dump_scope_block (FILE *file, int indent, tree scope, int flags) @@ -606,12 +608,26 @@ dump_scope_block (FILE *file, int indent, tree scope, int flags) fprintf (file, "\n%*s}\n",indent, ""); } + +/* Dump the tree of lexical scopes of current_function_decl to FILE. + FLAGS is as in print_generic_expr. */ + void dump_scope_blocks (FILE *file, int flags) { dump_scope_block (file, 0, DECL_INITIAL (current_function_decl), flags); } + +/* Dump the tree of lexical scopes of current_function_decl to stderr. + FLAGS is as in print_generic_expr. */ + +void +debug_scope_blocks (int flags) +{ + dump_scope_blocks (stderr, flags); +} + /* Remove local variables that are not referenced in the IL. */ void |