diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-11-19 14:23:23 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-11-19 14:23:23 +0100 |
commit | 986ad1338d0634b347cf39619964ceb4d4850713 (patch) | |
tree | 64d2caf2fc302726b3cf6921212ed6a3ca42d7d8 /gcc/tree.c | |
parent | 1abed66bb0ea21342637f1fabb382d80daae8287 (diff) | |
download | gcc-986ad1338d0634b347cf39619964ceb4d4850713.zip gcc-986ad1338d0634b347cf39619964ceb4d4850713.tar.gz gcc-986ad1338d0634b347cf39619964ceb4d4850713.tar.bz2 |
tree.c (need_assembler_name_p): Use cgraph_get_node instead of cgraph_node_for_decl.
* tree.c (need_assembler_name_p): Use cgraph_get_node instead
of cgraph_node_for_decl.
* cgraph.h (cgraph_node_for_decl): Remove prototype.
* cgraph.c (cgraph_node_for_decl): Remove.
(cgraph_get_node): Just return NULL if !cgraph_hash.
From-SVN: r154329
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4289,7 +4289,7 @@ need_assembler_name_p (tree decl) return false; /* Functions represented in the callgraph need an assembler name. */ - if (cgraph_node_for_decl (decl) != NULL) + if (cgraph_get_node (decl) != NULL) return true; /* Unused and not public functions don't need an assembler name. */ |