Most of this can be found in the cgraph nodes. The rest requires scanning the IL.
Ken Zadeck should have code to do this. On Wed, 2005-07-06 at 08:32 -0400, Michael Tegtmeyer wrote: > Hello, > > Is there existing functionality somewhere to sweep a function and collect > all externally visible variables at the tree level or do I need to roll my > own? I've looked in tree.h and grepped around as much as I could but I > haven't found anything obvious. > > Thanks in advance, > Mike Tegtmeyer