diff options
author | Martin Liska <mliska@suse.cz> | 2018-06-08 14:36:26 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-06-08 12:36:26 +0000 |
commit | 4325656f9fddc1c3802ac27795a77cec3ede27a4 (patch) | |
tree | 3007ee87e0be9ad71f6af55941a7f2d815dedcfa /gcc/cgraph.c | |
parent | 8b25212d3e960dd130d71330ad6d55b40c5be254 (diff) |
Come up with cgraph_node::get_uid and make cgraph_node::uid private.
2018-06-08 Martin Liska <mliska@suse.cz>
* cgraph.c (function_version_hasher::hash): Use
cgraph_node::get_uid ().
(function_version_hasher::equal):
* cgraph.h (cgraph_node::get_uid): New method.
* ipa-inline.c (update_caller_keys): Use
cgraph_node::get_uid ().
(update_callee_keys): Likewise.
* ipa-utils.c (searchc): Likewise.
(ipa_reduced_postorder): Likewise.
* lto-cgraph.c (input_node): Likewise.
* passes.c (is_pass_explicitly_enabled_or_disabled): Likewise.
* symbol-summary.h (symtab_insertion): Likewise.
(symtab_removal): Likewise.
(symtab_duplication): Likewise.
* tree-pretty-print.c (dump_function_header): Likewise.
* tree-sra.c (convert_callers_for_node): Likewise.
From-SVN: r261320
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index cf6b35a1c83..bafbed7f13d 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -120,7 +120,7 @@ static GTY(()) hash_table<function_version_hasher> *cgraph_fnver_htab = NULL; hashval_t function_version_hasher::hash (cgraph_function_version_info *ptr) { - int uid = ptr->this_node->uid; + int uid = ptr->this_node->get_uid (); return (hashval_t)(uid); } @@ -129,7 +129,7 @@ bool function_version_hasher::equal (cgraph_function_version_info *n1, cgraph_function_version_info *n2) { - return n1->this_node->uid == n2->this_node->uid; + return n1->this_node->get_uid () == n2->this_node->get_uid (); } /* Mark as GC root all allocated nodes. */ |