diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-03-10 19:37:52 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-03-10 19:37:52 +0000 |
commit | 581197a9ed67f65e264bab113279e78a2f4fd6d3 (patch) | |
tree | 2c36a1c8932d30027069cd43985a5c478b02d9b4 /gcc/sdbout.c | |
parent | 1c87dc645aad835d04bbacbe41dd7ee08ae537c6 (diff) | |
download | gcc-581197a9ed67f65e264bab113279e78a2f4fd6d3.tar.gz |
(sdbout_record_type_name): If TYPE_NAME is a TYPE_DECL, get name from
DECL_NAME.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9166 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r-- | gcc/sdbout.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c index cf95f15bf85..af003545e79 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -422,12 +422,8 @@ sdbout_record_type_name (type) tree t = 0; /* Find the IDENTIFIER_NODE for the type name. */ if (TREE_CODE (TYPE_NAME (type)) == IDENTIFIER_NODE) - { t = TYPE_NAME (type); - } -#if 1 /* As a temporary hack, use typedef names for C++ only. */ - else if (TREE_CODE (TYPE_NAME (type)) == TYPE_DECL - && TYPE_LANG_SPECIFIC (type)) + else if (TREE_CODE (TYPE_NAME (type)) == TYPE_DECL) { t = DECL_NAME (TYPE_NAME (type)); /* The DECL_NAME for templates includes "<>", which breaks @@ -436,7 +432,6 @@ sdbout_record_type_name (type) if (t && template_name_p (t)) t = DECL_ASSEMBLER_NAME (TYPE_NAME (type)); } -#endif /* Now get the name as a string, or invent one. */ if (t != NULL_TREE) |