tree-pretty-print.c (dump_decl_name): Print unnamed decls as D.xxx rather than <Dxxx>.
authorGeoffrey Keating <geoffk@apple.com>
Sat, 11 Sep 2004 05:03:14 +0000 (05:03 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Sat, 11 Sep 2004 05:03:14 +0000 (05:03 +0000)
* tree-pretty-print.c (dump_decl_name): Print unnamed decls as
D.xxx rather than <Dxxx>.

From-SVN: r87344

gcc/ChangeLog
gcc/tree-pretty-print.c

index 3ff2a25b031cd970e8924cab4057ae681f20764f..8b19ac63b0f3ebd65ea0e7b5531583812fe220a8 100644 (file)
@@ -1,3 +1,8 @@
+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>  
 
        * configure.ac (AC_MSG_CHECKING(what linker to use)):
index af3a0294626c3695b0a4813ee9f9380cc3e29745..5aa174369bb654eb186e8bf201fb4341a002f3a4 100644 (file)
@@ -162,12 +162,12 @@ dump_decl_name (pretty_printer *buffer, tree node, int flags)
     {
       if (TREE_CODE (node) == LABEL_DECL
          && 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));
       else
        {
          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));
        }
     }
 }