+2014-06-23 Jan Hubicka <hubicka@ucw.cz>
+
+ * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini priority
+ directly.
+
2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
* loop-invariant.c (pre_check_invariant_p): New function.
}
streamer_write_hwi_stream (ob->main_stream, node->profile_id);
if (DECL_STATIC_CONSTRUCTOR (node->decl))
- streamer_write_hwi_stream (ob->main_stream, DECL_INIT_PRIORITY (node->decl));
+ streamer_write_hwi_stream (ob->main_stream, node->get_init_priority ());
if (DECL_STATIC_DESTRUCTOR (node->decl))
- streamer_write_hwi_stream (ob->main_stream, DECL_FINI_PRIORITY (node->decl));
+ streamer_write_hwi_stream (ob->main_stream, node->get_fini_priority ());
}
/* Output the varpool NODE to OB.
node->alias_target = get_alias_symbol (node->decl);
node->profile_id = streamer_read_hwi (ib);
if (DECL_STATIC_CONSTRUCTOR (node->decl))
- SET_DECL_INIT_PRIORITY (node->decl, streamer_read_hwi (ib));
+ node->set_init_priority (streamer_read_hwi (ib));
if (DECL_STATIC_DESTRUCTOR (node->decl))
- SET_DECL_FINI_PRIORITY (node->decl, streamer_read_hwi (ib));
+ node->set_fini_priority (streamer_read_hwi (ib));
return node;
}