diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-18 14:51:54 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-18 14:51:54 +0000 |
commit | 8e3deba7f9449c561911e7856b95ec1578fb5001 (patch) | |
tree | e19ca8d69418bd88e8861decc26c8b195dde4b2f /gcc/tree-flow-inline.h | |
parent | f659dc41e3c2cd5d6ca64b4d4db0a755d444e571 (diff) | |
download | gcc-8e3deba7f9449c561911e7856b95ec1578fb5001.tar.gz |
2007-10-18 Richard Guenther <rguenther@suse.de>
* tree-flow.h (struct gimple_df): Make referenced_vars
a uid_decl_map.
(uid_decl_map_eq): Declare.
(uid_decl_map_hash): Likewise.
* tree-ssa.c (uid_decl_map_eq): New function.
(uid_decl_map_hash): Likewise.
(init_tree_ssa): Make referenced_vars a uid_decl_map.
* tree-flow-inline.h (first_referenced_var): Deal with
the referenced_vars representation change.
(next_referenced_var): Likewise.
* tree-dfa.c (referenced_var_lookup): Likewise.
(referenced_var_check_and_insert): Likewise.
(remove_referenced_var): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129440 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 71e607bddce..7f47bba4c7d 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -151,13 +151,8 @@ next_htab_element (htab_iterator *hti) static inline tree first_referenced_var (referenced_var_iterator *iter) { - struct int_tree_map *itm; - itm = (struct int_tree_map *) first_htab_element (&iter->hti, - gimple_referenced_vars - (cfun)); - if (!itm) - return NULL; - return itm->to; + return (tree) first_htab_element (&iter->hti, + gimple_referenced_vars (cfun)); } /* Return true if we have hit the end of the referenced variables ITER is @@ -175,11 +170,7 @@ end_referenced_vars_p (const referenced_var_iterator *iter) static inline tree next_referenced_var (referenced_var_iterator *iter) { - struct int_tree_map *itm; - itm = (struct int_tree_map *) next_htab_element (&iter->hti); - if (!itm) - return NULL; - return itm->to; + return (tree) next_htab_element (&iter->hti); } /* Fill up VEC with the variables in the referenced vars hashtable. */ |