toplev.c (default_tree_printer): Add handling for %E format.

2009-04-17  Simon Baldwin  <simonb@google.com>

	* toplev.c (default_tree_printer): Add handling for %E format.

From-SVN: r146294
This commit is contained in:
Simon Baldwin 2009-04-17 21:30:22 +00:00 committed by Diego Novillo
parent 413d3aa89d
commit 4e53d196cc
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-04-17 Simon Baldwin <simonb@google.com>
* toplev.c (default_tree_printer): Add handling for %E format.
2009-04-17 Diego Novillo <dnovillo@google.com>
* tree-pretty-print.c (dump_generic_node): Add break

View File

@ -1508,6 +1508,15 @@ default_tree_printer (pretty_printer * pp, text_info *text, const char *spec,
switch (*spec)
{
case 'E':
t = va_arg (*text->args_ptr, tree);
if (TREE_CODE (t) == IDENTIFIER_NODE)
{
pp_string (pp, IDENTIFIER_POINTER (t));
return true;
}
break;
case 'D':
t = va_arg (*text->args_ptr, tree);
if (DECL_DEBUG_EXPR_IS_FROM (t) && DECL_DEBUG_EXPR (t))