This is the mail archive of the
mailing list for the GCC project.
RE: Function Name from CALL_INSN RTX
Thanks for the help Ian. The function get_callee_fndecl takes in a tree and returns a tree. I would like to get the function name from the RTX. Is there a function for this purpose?
Balaji V. Iyer.
From: Ian Lance Taylor [email@example.com]
Sent: Tuesday, October 18, 2011 12:47 AM
To: Iyer, Balaji V
Subject: Re: Function Name from CALL_INSN RTX
"Iyer, Balaji V" <firstname.lastname@example.org> writes:
> Is it possible to extract the function name (as a tree or char *) from a CALL_INSN RTX? Is there a #define or a series of #defines that can accomplish this?
Not always, of course. A call through a function pointer has no name.
The function get_callee_fndecl will do its best to get the function decl
from a CALL_EXPR.