Nicolas COLLIN writes:
>> From internal representation. I got the body with DECL_SAVED_TREE
>> and I
> succeed to get the name of functions and methods called from
> CALL_EXPR, using TREE_OPERAND, EXPR_STMT_EXPR, etc... But I can't get
> the object on which is called
Hello,
my purpose is to write informations about a function by reading its body
from internal representation. I got the body with DECL_SAVED_TREE and I
succeed to get the name of functions and methods called from CALL_EXPR,
using TREE_OPERAND, EXPR_STMT_EXPR, etc... But I can't get the o
Nicolas COLLIN writes:
> I looked at the part of the documentation about function bodies and I
> wonder something : is there a way to get the function calls from it ?
> Because I'd like to make a call graph which represent function and the
> functions it calls.
gcc builds a call graph. See cgra
You must be looking at old documentation or something.
Call's are represented by GIMPLE_CALL_STMT (or CALL_EXPR in older GCC'en).
There has been a callgraph for quite a long time (see cgraph*.c and cgraph*.h)
On Tue, Jul 7, 2009 at 7:26 AM, Nicolas
COLLIN wrote:
> Hello,
> I looked at the part of
Hello,
I looked at the part of the documentation about function bodies and I
wonder something : is there a way to get the function calls from it ?
Because I'd like to make a call graph which represent function and the
functions it calls.
Thank you.
Nicolas COLLIN