Commit ac80ba07 by Diego Novillo

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
parent d1803a17
2009-05-27 Diego Novillo <dnovillo@google.com>
* tree-ssa-live.c (dump_scope_block): Document arguments.
(dump_scope_blocks): Document.
(debug_scope_blocks): New.
* tree-flow.h (debug_scope_blocks): Declare.
2009-05-21 Denis Chertykov <denisc@overta.ru> 2009-05-21 Denis Chertykov <denisc@overta.ru>
* doc/contrib.texi (Contributors): add myself to the list. * doc/contrib.texi (Contributors): add myself to the list.
2009-05-28 Olivier Hainque <hainque@adacore.com> 2009-05-28 Olivier Hainque <hainque@adacore.com>
......
...@@ -910,6 +910,7 @@ void mark_addressable (tree); ...@@ -910,6 +910,7 @@ void mark_addressable (tree);
/* In tree-ssa-live.c */ /* In tree-ssa-live.c */
extern void remove_unused_locals (void); extern void remove_unused_locals (void);
extern void dump_scope_blocks (FILE *, int); extern void dump_scope_blocks (FILE *, int);
extern void debug_scope_blocks (int);
/* In tree-ssa-address.c */ /* In tree-ssa-address.c */
......
...@@ -552,7 +552,9 @@ mark_all_vars_used (tree *expr_p, void *data) ...@@ -552,7 +552,9 @@ mark_all_vars_used (tree *expr_p, void *data)
walk_tree (expr_p, mark_all_vars_used_1, data, NULL); 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 static void
dump_scope_block (FILE *file, int indent, tree scope, int flags) 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) ...@@ -606,12 +608,26 @@ dump_scope_block (FILE *file, int indent, tree scope, int flags)
fprintf (file, "\n%*s}\n",indent, ""); 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 void
dump_scope_blocks (FILE *file, int flags) dump_scope_blocks (FILE *file, int flags)
{ {
dump_scope_block (file, 0, DECL_INITIAL (current_function_decl), 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. */ /* Remove local variables that are not referenced in the IL. */
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment