diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2014-11-20 15:10:49 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2014-11-20 15:10:49 +0000 |
commit | 907dadbd2ade80fd356071954711375ce9b0c85a (patch) | |
tree | 0e6aa4b2c49f7ab4a703ab71a3335cb58bcb19c6 /gcc/ipa-utils.c | |
parent | 9c71e9df38dc3260fc21d8e8024b53d6dd3f7ac3 (diff) | |
download | gcc-907dadbd2ade80fd356071954711375ce9b0c85a.zip gcc-907dadbd2ade80fd356071954711375ce9b0c85a.tar.gz gcc-907dadbd2ade80fd356071954711375ce9b0c85a.tar.bz2 |
remove more ggc htabs
gcc/
* ipa-utils.c, lto-section-in.c, lto-streamer.h,
tree-scalar-evolution.c: Replace htab with hash_table.
lto/
* lto.c: Replace htab with hash_table.
From-SVN: r217871
Diffstat (limited to 'gcc/ipa-utils.c')
-rw-r--r-- | gcc/ipa-utils.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/ipa-utils.c b/gcc/ipa-utils.c index 22900cc..7613205 100644 --- a/gcc/ipa-utils.c +++ b/gcc/ipa-utils.c @@ -438,17 +438,17 @@ ipa_merge_profiles (struct cgraph_node *dst, temporarily inconsistent. */ if (src->decl == dst->decl) { - void **slot; struct lto_in_decl_state temp; struct lto_in_decl_state *state; /* We are going to move the decl, we want to remove its file decl data. and link these with the new decl. */ temp.fn_decl = src->decl; - slot = htab_find_slot (src->lto_file_data->function_decl_states, - &temp, NO_INSERT); - state = (lto_in_decl_state *)*slot; - htab_clear_slot (src->lto_file_data->function_decl_states, slot); + lto_in_decl_state **slot + = src->lto_file_data->function_decl_states->find_slot (&temp, + NO_INSERT); + state = *slot; + src->lto_file_data->function_decl_states->clear_slot (slot); gcc_assert (state); /* Duplicate the decl and be sure it does not link into body of DST. */ @@ -461,8 +461,8 @@ ipa_merge_profiles (struct cgraph_node *dst, /* Associate the decl state with new declaration, so LTO streamer can look it up. */ state->fn_decl = src->decl; - slot = htab_find_slot (src->lto_file_data->function_decl_states, - state, INSERT); + slot + = src->lto_file_data->function_decl_states->find_slot (state, INSERT); gcc_assert (!*slot); *slot = state; } |