Commit 70601cc2 by Geoffrey Keating Committed by Geoffrey Keating

tree-pretty-print.c (dump_decl_name): Print unnamed decls as D.xxx rather than <Dxxx>.

	* tree-pretty-print.c (dump_decl_name): Print unnamed decls as
	D.xxx rather than <Dxxx>.

From-SVN: r87344
parent 8a45d680
2004-09-10 Geoffrey Keating <geoffk@apple.com>
* tree-pretty-print.c (dump_decl_name): Print unnamed decls as
D.xxx rather than <Dxxx>.
2004-09-10 Adam Nemet <anemet@lnxw.com> 2004-09-10 Adam Nemet <anemet@lnxw.com>
* configure.ac (AC_MSG_CHECKING(what linker to use)): * configure.ac (AC_MSG_CHECKING(what linker to use)):
......
...@@ -162,12 +162,12 @@ dump_decl_name (pretty_printer *buffer, tree node, int flags) ...@@ -162,12 +162,12 @@ dump_decl_name (pretty_printer *buffer, tree node, int flags)
{ {
if (TREE_CODE (node) == LABEL_DECL if (TREE_CODE (node) == LABEL_DECL
&& LABEL_DECL_UID (node) != -1) && LABEL_DECL_UID (node) != -1)
pp_printf (buffer, "<L" HOST_WIDE_INT_PRINT_DEC ">", pp_printf (buffer, "L." HOST_WIDE_INT_PRINT_DEC,
LABEL_DECL_UID (node)); LABEL_DECL_UID (node));
else else
{ {
char c = TREE_CODE (node) == CONST_DECL ? 'C' : 'D'; char c = TREE_CODE (node) == CONST_DECL ? 'C' : 'D';
pp_printf (buffer, "<%c%u>", c, DECL_UID (node)); pp_printf (buffer, "%c.%u", c, DECL_UID (node));
} }
} }
} }
......
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