diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-10-22 20:42:06 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-10-22 20:42:06 +0000 |
commit | 449e9a33887046acec46f373f96900fc07735355 (patch) | |
tree | 083e08720c9922f43d59871a20fcc92f1efea89b /gcc/ipa-devirt.c | |
parent | ef1e3836710e20fb399a72bda0bde0ba7a616078 (diff) | |
download | gcc-449e9a33887046acec46f373f96900fc07735355.zip gcc-449e9a33887046acec46f373f96900fc07735355.tar.gz gcc-449e9a33887046acec46f373f96900fc07735355.tar.bz2 |
Rename inchash::hash::add_wide_int
The name inchash::add_wide_int is a bit misleading, since it sounds
like it's hashing a wide_int. This patch renames it to add_hwi instead.
2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
* inchash.h (inchash::hash::add_wide_int): Rename to...
(inchash::hash::add_hwi): ...this.
* ipa-devirt.c (hash_odr_vtable): Update accordingly.
(polymorphic_call_target_hasher::hash): Likewise.
* ipa-icf.c (sem_function::get_hash, sem_function::init): Likewise.
(sem_item::add_expr, sem_item::add_type, sem_variable::get_hash)
(sem_item_optimizer::update_hash_by_addr_refs): Likewise.
* lto-streamer-out.c (hash_tree): Likewise.
* optc-save-gen.awk: Likewise.
* tree.c (add_expr): Likewise.
From-SVN: r253987
Diffstat (limited to 'gcc/ipa-devirt.c')
-rw-r--r-- | gcc/ipa-devirt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index f0aecfb..f03c7f0 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -373,7 +373,7 @@ hash_odr_vtable (const_tree t) v = TREE_OPERAND (TREE_OPERAND (v, 0), 0); } - hstate.add_wide_int (IDENTIFIER_HASH_VALUE (DECL_ASSEMBLER_NAME (v))); + hstate.add_hwi (IDENTIFIER_HASH_VALUE (DECL_ASSEMBLER_NAME (v))); return hstate.end (); } @@ -2625,14 +2625,14 @@ polymorphic_call_target_hasher::hash (const polymorphic_call_target_d *odr_query { inchash::hash hstate (odr_query->otr_token); - hstate.add_wide_int (odr_query->type->id); + hstate.add_hwi (odr_query->type->id); hstate.merge_hash (TYPE_UID (odr_query->context.outer_type)); - hstate.add_wide_int (odr_query->context.offset); + hstate.add_hwi (odr_query->context.offset); if (odr_query->context.speculative_outer_type) { hstate.merge_hash (TYPE_UID (odr_query->context.speculative_outer_type)); - hstate.add_wide_int (odr_query->context.speculative_offset); + hstate.add_hwi (odr_query->context.speculative_offset); } hstate.add_flag (odr_query->speculative); hstate.add_flag (odr_query->context.maybe_in_construction); |