diff options
Diffstat (limited to 'gcc/line-map.h')
-rw-r--r-- | gcc/line-map.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/line-map.h b/gcc/line-map.h index 1f9a47da42a..b6c934435d3 100644 --- a/gcc/line-map.h +++ b/gcc/line-map.h @@ -75,9 +75,12 @@ extern struct line_map *lookup_line /* Returns the last source line within a map. This is the (last) line of the #include, or other directive, that caused a map change. */ -#define LAST_SOURCE_LINE(MAP) SOURCE_LINE (MAP, (MAP)[1].from_line - 1) +#define LAST_SOURCE_LINE(MAP) SOURCE_LINE ((MAP), (MAP)[1].from_line - 1) /* Non-zero if the map is at the bottom of the include stack. */ #define MAIN_FILE_P(MAP) ((MAP)->included_from < 0) +/* The current line map. */ +#define CURRENT_LINE_MAP(MAPS) ((MAPS)->maps + (MAPS)->used - 1) + #endif /* !GCC_LINE_MAP_H */ |