This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to get fndecl on C++ CALL_EXPR?
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 30 Jan 2008 20:04:52 -0800
- Subject: Re: How to get fndecl on C++ CALL_EXPR?
- References: <20080131035934.GA16327@lucon.org>
On Jan 30, 2008 7:59 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> I am trying to get fndecl on a C++ CALL_EXPR with get_callee_fndecl.
> But get_callee_fndecl returns NULL. What is the proper way to
> get fndecl on a C++ CALL_EXPR in the middle end?
If it is returning NULL, then there is no function decl associated with
that call, meaning it is an indirect call. There is nothing you can do then.
-- Pinski