This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Additional tree node questions.
Brendon Costa wrote:
> Ian Lance Taylor wrote:
>> Brendon Costa <bcosta@avdat.com.au> writes:
>>
>>> For each FUNCTION_DECL node I find, I want to determine what its
>>> exception specification list is. I.e. the throws() statement in its
>>> prototype.
>> Look at TYPE_RAISES_EXCEPTIONS (FNDECL).
>>
>> Ian
>
Aahh. I should have read the documentation more closely.
TYPE_RAISES_EXCEPTIONS() requires a FUNCTION_TYPE node NOT a
FUNCTION_DECL node.
Thanks again for the pointer to the correct macro.
Brendon.