diff options
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r-- | gcc/tree-dfa.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index c745ed0..b9fecfb 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -566,6 +566,20 @@ find_vars_r (tree *tp, int *walk_subtrees, void *data) /* Lookup UID in the referenced_vars hashtable and return the associated + variable or NULL if it is not there. */ + +tree +referenced_var_lookup_if_exists (unsigned int uid) +{ + struct int_tree_map *h, in; + in.uid = uid; + h = htab_find_with_hash (referenced_vars, &in, uid); + if (h) + return h->to; + return NULL_TREE; +} + +/* Lookup UID in the referenced_vars hashtable and return the associated variable. */ tree |