* tree.h (decl_comdat_group): Declare.
* cgraph.h (symtab_in_same_comdat_p): Move offline to ...
* tree.c (decl_comdat_group): Here.
From-SVN: r210956
+2014-05-26 Jan Hubicka <hubicka@ucw.cz>
+
+ * tree.h (decl_comdat_group): Declare.
+ * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
+ * tree.c (decl_comdat_group): Here.
+
2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
PR rtl-optimization/61222
return one->get_comdat_group () == two->get_comdat_group ();
}
-
-/* Return comdat group of DECL. */
-static inline tree
-decl_comdat_group (tree node)
-{
- struct symtab_node *snode = symtab_get_node (node);
- if (!snode)
- return NULL;
- return snode->get_comdat_group ();
-}
#endif /* GCC_CGRAPH_H */
return DECL_WITH_VIS_CHECK (decl)->decl_with_vis.assembler_name;
}
+/* Return comdat group of DECL. */
+tree
+decl_comdat_group (tree node)
+{
+ struct symtab_node *snode = symtab_get_node (node);
+ if (!snode)
+ return NULL;
+ return snode->get_comdat_group ();
+}
+
/* Compute the number of bytes occupied by a tree with code CODE.
This function cannot be used for nodes that have variable sizes,
including TREE_VEC, INTEGER_CST, STRING_CST, and CALL_EXPR. */
|| ((NODE) && TREE_TYPE ((NODE)) == error_mark_node))
extern tree decl_assembler_name (tree);
+extern tree decl_comdat_group (tree);
/* Compute the number of bytes occupied by 'node'. This routine only
looks at TREE_CODE and, if the code is TREE_VEC, TREE_VEC_LENGTH. */