diff options
author | Catherine Moore <clm@codesourcery.com> | 2009-04-15 17:40:25 -0400 |
---|---|---|
committer | Catherine Moore <clm@gcc.gnu.org> | 2009-04-15 17:40:25 -0400 |
commit | a417cdd9635da7f784a48ec8cb49cca51833d970 (patch) | |
tree | 0402e3e8283f7c4c4e6a30872b20d24962d60c70 /gcc/cp | |
parent | 4268e5a55062bfa28f1527cda5c7c2f88317dbfb (diff) | |
download | gcc-a417cdd9635da7f784a48ec8cb49cca51833d970.zip gcc-a417cdd9635da7f784a48ec8cb49cca51833d970.tar.gz gcc-a417cdd9635da7f784a48ec8cb49cca51833d970.tar.bz2 |
debug.h (set_name): Declare.
2009-04-15 Catherine Moore <clm@codesourcery.com>
* debug.h (set_name): Declare.
* dwarf2out.c (dwarf2out_set_name): Declare.
(dwarf2_debug_hooks): Add set_name.
(find_AT_string): New.
(add_AT_string): Call find_AT_string.
(dwarf2out_set_name): New.
* cp/decl.c (grokdeclarator): Call set_name.
* vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
* debug.c (do_nothing_debug_hooks): Likewise.
* dbxout.c (dbx_debug_hooks): Likewise.
* sdbout.c (sdb_debug_hooks): Likewise.
From-SVN: r146137
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/decl.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 5ab9392..2c13e84 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -8828,8 +8828,13 @@ grokdeclarator (const cp_declarator *declarator, /* Replace the anonymous name with the real name everywhere. */ for (t = TYPE_MAIN_VARIANT (type); t; t = TYPE_NEXT_VARIANT (t)) - if (ANON_AGGRNAME_P (TYPE_IDENTIFIER (t))) - TYPE_NAME (t) = decl; + { + if (ANON_AGGRNAME_P (TYPE_IDENTIFIER (t))) + { + debug_hooks->set_name (t, decl); + TYPE_NAME (t) = decl; + } + } if (TYPE_LANG_SPECIFIC (type)) TYPE_WAS_ANONYMOUS (type) = 1; |