aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2004-05-19 01:28:56 +0000
committerZack Weinberg <zack@codesourcery.com>2004-05-19 01:28:56 +0000
commit8afbae198b9b111827d0d1feefeeb275cbc34a6c (patch)
tree3b98c8b6def01f3ffef6ee0dc67f9968797dce2e /gcc/cp/method.c
parent44942ed2f8945d39834a6c913f6269003abd6539 (diff)
* cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
(cgraph_varpool_hash_node, eq_cgraph_varpool_node) (cgraph_varpool_node): Use DECL_UID for the key, not DECL_ASSEMBLER_NAME. (cgraph_function_possibly_inlined_p): Use the decl itself for the key, not DECL_ASSEMBLER_NAME. (change_decl_assembler_name): No need to muck with the hash tables. (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier): Delete. * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself for the key, not DECL_ASSEMBLER_NAME. * cgraph.h: Remove prototypes of deleted functions. * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED. (mark_decl_referenced): New function. * tree.h: Prototype mark_decl_referenced. * final.c (output_addr_const) <case SYMBOL_REF>: Call mark_decl_referenced before assemble_name. * c-decl.c (finish_decl): Use mark_decl_referenced. cp: * decl.c (cp_finish_decl): Use mark_decl_referenced. * decl2.c (maybe_make_one_only): Likewise. * method.c (use_thunk): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@82015 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index d1ce575cae0..efd0e06269c 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -353,7 +353,7 @@ use_thunk (tree thunk_fndecl, bool emit_p)
this translation unit. */
TREE_ADDRESSABLE (function) = 1;
mark_used (function);
- mark_referenced (DECL_ASSEMBLER_NAME (function));
+ mark_decl_referenced (function);
if (!emit_p)
return;
@@ -495,7 +495,7 @@ use_thunk (tree thunk_fndecl, bool emit_p)
/* Since we want to emit the thunk, we explicitly mark its name as
referenced. */
- mark_referenced (DECL_ASSEMBLER_NAME (thunk_fndecl));
+ mark_decl_referenced (thunk_fndecl);
/* But we don't want debugging information about it. */
DECL_IGNORED_P (thunk_fndecl) = 1;