This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: call site information
- From: Tom Tromey <tromey at redhat dot com>
- To: "Dasarath Weeratunge" <dasarath at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 21 Feb 2008 14:29:51 -0700
- Subject: Re: call site information
- References: <610adb5f0802211348o76079bf7x824e3cefc8cf68ff@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "Dasarath" == Dasarath Weeratunge <dasarath@gmail.com> writes:
Dasarath> If I have a CALL_EXPR how can I find out information about the call
Dasarath> site? For example, the filename and line number.
See EXPR_HAS_LOCATION, EXPR_LOCUS, etc.
In general I recommend reading tree.def and skimming tree.h before
trying to do anything with trees. doc/c-tree.texi may also be helpful.
Tom