On 12/7/19 12:49 AM, Bernhard Reutner-Fischer wrote:
On 5 December 2019 16:24:53 CET, "Martin Liška" <mli...@suse.cz> wrote:
-/* Allocate new callgraph node. */
-
-inline cgraph_node *
-symbol_table::allocate_cgraph_symbol (void)
-{
- cgraph_node *node;
-
- node = ggc_cleared_alloc<cgraph_node> ();
- node->type = SYMTAB_FUNCTION;
- node->m_summary_id = -1;
- node->m_uid = cgraph_max_uid++;
- return node;
-}
Just because I don't see it in the patch, how is cgraph_max_uid++ maintained
after that patch?
It's moved to function symbol_table::create_empty (void) where we call:
return new (ggc_alloc<cgraph_node> ()) cgraph_node (cgraph_max_uid++);
Thanks,
Martin
thanks,