aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-11-19 14:23:23 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2009-11-19 14:23:23 +0100
commit986ad1338d0634b347cf39619964ceb4d4850713 (patch)
tree64d2caf2fc302726b3cf6921212ed6a3ca42d7d8 /gcc/tree.c
parent1abed66bb0ea21342637f1fabb382d80daae8287 (diff)
downloadgcc-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 3bfb527..df24eb4 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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. */