diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-23 06:33:35 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-23 06:33:35 +0000 |
commit | 68ce6e1aa7200cb9fee240f55f9beb3afeba9da3 (patch) | |
tree | 52c03be1266dfc5b9414c33390d9dfbb329ba524 /gcc/lto-cgraph.c | |
parent | 9b59e2174ee59dd3aa55c7c3342daa2a6bc23fba (diff) |
* lto-cgraph.c (lto_output_node, input_node): Set/get init/fini priority
directly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211886 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-cgraph.c')
-rw-r--r-- | gcc/lto-cgraph.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index 54942cf9e36..16837041538 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -558,9 +558,9 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node, } 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. @@ -1215,9 +1215,9 @@ input_node (struct lto_file_decl_data *file_data, 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; } |