diff options
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 00a9f20..ab095f6 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -1796,6 +1796,20 @@ gimple_has_location (const gimple *g) } +/* Return non-artificial location information for statement G. */ + +static inline location_t +gimple_nonartificial_location (const gimple *g) +{ + location_t *ploc = NULL; + + if (tree block = gimple_block (g)) + ploc = block_nonartificial_location (block); + + return ploc ? *ploc : gimple_location (g); +} + + /* Return the file name of the location of STMT. */ static inline const char * |