diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-06-18 13:48:02 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-06-18 13:48:02 -0700 |
commit | ee3e2d3de0491993101f0b9b097cf815034034bc (patch) | |
tree | 73f9a15cba2559ba9bf39c9f40c879bf8c236f54 /gcc/sdbout.c | |
parent | f97d29ce9ccf582aca6ecbe1780a53b3e760aa8b (diff) | |
download | gcc-ee3e2d3de0491993101f0b9b097cf815034034bc.zip gcc-ee3e2d3de0491993101f0b9b097cf815034034bc.tar.gz gcc-ee3e2d3de0491993101f0b9b097cf815034034bc.tar.bz2 |
(sdbout_one_type): Use DECL_ASSEMBLER_NAME not
DECL_NAME for child_type that is a template type.
From-SVN: r7518
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r-- | gcc/sdbout.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c index df0163b..583dda0 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -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; |