(sdbout_one_type): Use DECL_ASSEMBLER_NAME not
authorJim Wilson <wilson@gcc.gnu.org>
Sat, 18 Jun 1994 20:48:02 +0000 (13:48 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Sat, 18 Jun 1994 20:48:02 +0000 (13:48 -0700)
DECL_NAME for child_type that is a template type.

From-SVN: r7518

gcc/sdbout.c

index df0163b..583dda0 100644 (file)
@@ -1110,7 +1110,12 @@ sdbout_one_type (type)
            if (TREE_CODE (TYPE_NAME (child_type)) == IDENTIFIER_NODE)
              child_type_name = TYPE_NAME (child_type);
            else if (TREE_CODE (TYPE_NAME (child_type)) == TYPE_DECL)
-             child_type_name = DECL_NAME (TYPE_NAME (child_type));
+             {
+               child_type_name = DECL_NAME (TYPE_NAME (child_type));
+               if (child_type_name && template_name_p (child_type_name))
+                 child_type_name
+                   = DECL_ASSEMBLER_NAME (TYPE_NAME (child_type));
+             }
            else
              continue;