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: How to get fndecl on C++ CALL_EXPR?


On Wed, Jan 30, 2008 at 08:04:52PM -0800, Andrew Pinski wrote:
> 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.
> 

It turns out that I only need return type. It is OK.

H.J.


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