This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]