Re: EXPR_HAS_LOCATION seems to always return false

2006-11-16 Thread Brendon Costa
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_FILENAM

Re: EXPR_HAS_LOCATION seems to always return false

2006-11-16 Thread Brendon Costa
Steven Bosscher wrote: On 11/17/06, Brendon Costa <[EMAIL PROTECTED]> wrote: Is there something i should be doing before using EXPR_HAS_LOCATION() ? Compile with -g, perhaps? I tried that and it didnt seem to make any difference.

Re: EXPR_HAS_LOCATION seems to always return false

2006-11-16 Thread Steven Bosscher
On 11/17/06, Brendon Costa <[EMAIL PROTECTED]> wrote: Is there something i should be doing before using EXPR_HAS_LOCATION() ? Compile with -g, perhaps? Gr. Steven

EXPR_HAS_LOCATION seems to always return false

2006-11-16 Thread Brendon Costa
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 requ