summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2004-05-19 01:28:56 +0000
committerZack Weinberg <zack@gcc.gnu.org>2004-05-19 01:28:56 +0000
commitbb9a388dad84486a075d822e4bed05a74faab780 (patch)
tree3b98c8b6def01f3ffef6ee0dc67f9968797dce2e /gcc/cgraphunit.c
parent5b200ac2c7278c022c23a684589df1b31a40a153 (diff)
downloadgcc-bb9a388dad84486a075d822e4bed05a74faab780.tar.gz
* 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. From-SVN: r82015
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index c079e404ee5..fcd85b49a31 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1076,9 +1076,8 @@ cgraph_mark_inline_edge (struct cgraph_edge *e)
if (!cgraph_inline_hash)
cgraph_inline_hash = htab_create_ggc (42, htab_hash_pointer,
htab_eq_pointer, NULL);
- slot = htab_find_slot (cgraph_inline_hash,
- DECL_ASSEMBLER_NAME (e->callee->decl), INSERT);
- *slot = DECL_ASSEMBLER_NAME (e->callee->decl);
+ slot = htab_find_slot (cgraph_inline_hash, e->callee->decl, INSERT);
+ *slot = e->callee->decl;
}
e->callee->global.inlined = true;