diff options
Diffstat (limited to 'gcc/input.h')
-rw-r--r-- | gcc/input.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/input.h b/gcc/input.h index c99abfd..ecf8db3 100644 --- a/gcc/input.h +++ b/gcc/input.h @@ -79,6 +79,14 @@ extern location_t input_location; extern location_t get_pure_location (location_t loc); +/* Get the start of any range encoded within location LOC. */ + +static inline location_t +get_start (location_t loc) +{ + return get_range_from_loc (line_table, loc).m_start; +} + /* Get the endpoint of any range encoded within location LOC. */ static inline location_t |