This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reverse mapping from decl uid


On Sat, Sep 18, 2010 at 9:26 PM, Uday P. Khedker <uday@cse.iitb.ac.in> wrote:
>
> Given a tree node, we can get its uid by using DECL_UID(node).
>
> Given a uid, is it possible to directly get the tree node that
> corresponds to it? I can of course make a list of nodes that I
> am interested in but if there is an API, I would much rather
> use it.

Not in general, there is referenced_var which is such a mapping
but is only valid for the decls a function references.

Richard.

> Thanks.
>
> Uday.
>
> P.S. : Earlier, I have written pretty complex code because I
> ? ? ? didn't know some of the APIs :-(
>
> ? ? ? Trying to become wiser now :-)
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]