> On Wed, Apr 25, 2012 at 5:04 PM, Jan Hubicka <hubi...@ucw.cz> wrote:
> > + /* Return true when there are references to NODE.  */
> > +
> > + static bool
> > + referred_to_p (symtab_node node)
> > + {
> > +   int i;
> > +   struct ipa_ref *ref;
> > +
> > +   for (i = 0; ipa_ref_list_referring_iterate (&node->symbol.ref_list, i, 
> > ref);
> > +        i++)
> > +     return true;
> 
> This looks odd. Don't you want to do something with ref?
No, I have just iteration API, not API to check how many refs are there
and I want to see if there are any...

Honza

Reply via email to