This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Simple question about FUNCTION_DECL.
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: pedwards at disaster dot jaj dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 3 Dec 01 18:12:25 EST
- Subject: Re: Simple question about FUNCTION_DECL.
Given a CALL_EXPR, is it possible to get the corresponding FUNCTION_DECL
from it, i.e., the inverse of build_x_function_call?
If it's calling a fixed function, then TREE_OPERAND of 0 should be an
ADDR_EXPR whose operand is the FUNCTION_DECL.