Re: Getting declaration tree node using func. name

2006-12-20 Thread Rohit Arul Raj
On 12/19/06, Ferad Zyulkyarov <[EMAIL PROTECTED]> wrote: tree fn_decl; tree fn_id; fn_id = get_identifier("test_fn_call"); fn_decl = lookup_name(fn_id); /* returns you a pointer to the function declaration tree */ Hope this is what you are looking for. On 12/19/06, Rohit Arul Raj <[EMAIL PROT

Re: Getting declaration tree node using func. name

2006-12-19 Thread Ferad Zyulkyarov
tree fn_decl; tree fn_id; fn_id = get_identifier("test_fn_call"); fn_decl = lookup_name(fn_id); /* returns you a pointer to the function declaration tree */ On 12/19/06, Rohit Arul Raj <[EMAIL PROTECTED]> wrote: Hi all, I am working with GCC 4.1.1. By using the function name, is it possible t

Getting declaration tree node using func. name

2006-12-19 Thread Rohit Arul Raj
Hi all, I am working with GCC 4.1.1. By using the function name, is it possible to get the declaration tree node of that function. e.g. using maybe_get_identifier("name"), i get the identifier node. similarly are there any functions or macros available to get the declaration tree node. Regards