EXPR_HAS_LOCATION seems to always return false
Brendon Costa
bcosta@avdat.com.au
Fri Nov 17 03:25:00 GMT 2006
Brendon Costa wrote:
> Hi all,
>
> I am trying to obtain location information (file, line) for a number
> of expr nodes (CALL_EXPR, THROW_EXPR and ADDR_EXPR) and it seems that
> every expression node i call EXPR_HAS_LOCATION on returns false.
>
> If it returns true i then use: EXPR_LINENO(), EXPR_FILENAME() to
> obtain the required data but that never seems to occur.
>
> Is there something i should be doing before using EXPR_HAS_LOCATION() ?
An additional note, is that i seem to correctly get the location info
from a HANDLER type node for a catch statement using the same code.
Brendon.
More information about the Gcc
mailing list