Matt Davis <mattdav...@gmail.com> writes: > I am trying to look at the arguments that are passed to a function > pointer. I have an SSA_NAME which is for a pointer-type to a > function-type. I want to obtain the arguments being passed to the > function pointer, but after looking all over the SSA_NAME node and its > corresponding VAR_DECL I cannot seem to find the arguments stashed > anywhere. I know this is somewhat of a special case. Typically, if I > had a fndecl it would be easy, but all I know in my case is the > function type.
A function pointer doesn't have any associated arguments, at least not as I use that word. Are you looking for the argument types? Because there are no argument values. The argument types can be found from the type of the SSA_NAME, which should be a FUNCTION_TYPE. TYPE_ARG_TYPES of the FUNCTION_TYPE will be the argument types. Ian