This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
DECL_SOURCE_LINE of else
- From: Peter Jensen <skruedims at yahoo dot dk>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 11 Oct 2010 16:47:05 +0100 (BST)
- Subject: DECL_SOURCE_LINE of else
Hi,
I am creating a plugin which parses the generic tree and inserts a function call in a if/else clause.
The function writes which lineno gets executed to stdout.
I wish to get the line number for the if statement and for the else statement. (and not the body. eg ELSE_CLAUSE).
My problem is that while I can get the line number for the if condition (eg. DECL_SOURCE_LINE(if_cond)),
is it also possible to get the precise line number for the 'else' label?
/Lars