diff options
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -603,7 +603,7 @@ decl_assembler_name (tree decl) tree decl_comdat_group (const_tree node) { - struct symtab_node *snode = symtab_get_node (node); + struct symtab_node *snode = symtab_node::get (node); if (!snode) return NULL; return snode->get_comdat_group (); @@ -613,7 +613,7 @@ decl_comdat_group (const_tree node) tree decl_comdat_group_id (const_tree node) { - struct symtab_node *snode = symtab_get_node (node); + struct symtab_node *snode = symtab_node::get (node); if (!snode) return NULL; return snode->get_comdat_group_id (); @@ -624,7 +624,7 @@ decl_comdat_group_id (const_tree node) const char * decl_section_name (const_tree node) { - struct symtab_node *snode = symtab_get_node (node); + struct symtab_node *snode = symtab_node::get (node); if (!snode) return NULL; return snode->get_section (); @@ -639,14 +639,14 @@ set_decl_section_name (tree node, const char *value) if (value == NULL) { - snode = symtab_get_node (node); + snode = symtab_node::get (node); if (!snode) return; } else if (TREE_CODE (node) == VAR_DECL) snode = varpool_node_for_decl (node); else - snode = cgraph_get_create_node (node); + snode = cgraph_node::get_create (node); snode->set_section (value); } @@ -5062,7 +5062,7 @@ need_assembler_name_p (tree decl) return false; /* Functions represented in the callgraph need an assembler name. */ - if (cgraph_get_node (decl) != NULL) + if (cgraph_node::get (decl) != NULL) return true; /* Unused and not public functions don't need an assembler name. */ @@ -5105,11 +5105,11 @@ free_lang_data_in_decl (tree decl) if (TREE_CODE (decl) == FUNCTION_DECL) { struct cgraph_node *node; - if (!(node = cgraph_get_node (decl)) + if (!(node = cgraph_node::get (decl)) || (!node->definition && !node->clones)) { if (node) - cgraph_release_function_body (node); + node->release_body (); else { release_function_body (decl); @@ -6488,7 +6488,7 @@ tree_decl_map_hash (const void *item) priority_type decl_init_priority_lookup (tree decl) { - symtab_node *snode = symtab_get_node (decl); + symtab_node *snode = symtab_node::get (decl); if (!snode) return DEFAULT_INIT_PRIORITY; @@ -6501,7 +6501,7 @@ decl_init_priority_lookup (tree decl) priority_type decl_fini_priority_lookup (tree decl) { - cgraph_node *node = cgraph_get_node (decl); + cgraph_node *node = cgraph_node::get (decl); if (!node) return DEFAULT_INIT_PRIORITY; @@ -6518,14 +6518,14 @@ decl_init_priority_insert (tree decl, priority_type priority) if (priority == DEFAULT_INIT_PRIORITY) { - snode = symtab_get_node (decl); + snode = symtab_node::get (decl); if (!snode) return; } else if (TREE_CODE (decl) == VAR_DECL) snode = varpool_node_for_decl (decl); else - snode = cgraph_get_create_node (decl); + snode = cgraph_node::get_create (decl); snode->set_init_priority (priority); } @@ -6538,12 +6538,12 @@ decl_fini_priority_insert (tree decl, priority_type priority) if (priority == DEFAULT_INIT_PRIORITY) { - node = cgraph_get_node (decl); + node = cgraph_node::get (decl); if (!node) return; } else - node = cgraph_get_create_node (decl); + node = cgraph_node::get_create (decl); node->set_fini_priority (priority); } |