summaryrefslogtreecommitdiff
path: root/gcc/ipa-utils.c
diff options
context:
space:
mode:
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-20 15:10:49 +0000
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-20 15:10:49 +0000
commit9f9f871f6cb738b7ce11633bd9a2e7336b136786 (patch)
tree0e6aa4b2c49f7ab4a703ab71a3335cb58bcb19c6 /gcc/ipa-utils.c
parent5ecbd52ec51edc2e78944975a64269118eb3ca9e (diff)
downloadgcc-9f9f871f6cb738b7ce11633bd9a2e7336b136786.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217871 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-utils.c')
-rw-r--r--gcc/ipa-utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/ipa-utils.c b/gcc/ipa-utils.c
index 22900ccaac6..7613205f673 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;
}