diff options
author | Martin Liska <mliska@suse.cz> | 2019-05-14 13:41:40 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-05-14 11:41:40 +0000 |
commit | e6fc8353fcfc15827c6a3c3dc97538f3507878d3 (patch) | |
tree | a4a2f49f1546e7a78bd144404af6fa4fd3ce83a8 /libcpp/include | |
parent | c688848d6a0c826a3e61d5a5e338f07578e71624 (diff) | |
download | gcc-e6fc8353fcfc15827c6a3c3dc97538f3507878d3.zip gcc-e6fc8353fcfc15827c6a3c3dc97538f3507878d3.tar.gz gcc-e6fc8353fcfc15827c6a3c3dc97538f3507878d3.tar.bz2 |
Do a refactoring in linemap (PR preprocessor/90382).
2019-05-14 Martin Liska <mliska@suse.cz>
PR preprocessor/90382
* include/line-map.h (get_data_from_adhoc_loc): Add const to
the first argument.
(get_location_from_adhoc_loc): Likewise.
* line-map.c(get_data_from_adhoc_loc): Add const to
the first argument.
(get_location_from_adhoc_loc): Likewise.
(get_combined_adhoc_loc): Use get_location_from_adhoc_loc
(or get_data_from_adhoc_loc).
(get_range_from_adhoc_loc): Likewise.
(get_pure_location): Likewise.
(linemap_position_for_loc_and_offset): Likewise.
(linemap_lookup): Likewise.
(linemap_ordinary_map_lookup): Likewise.
(linemap_macro_map_lookup): Likewise.
(linemap_get_expansion_line): Likewise.
(linemap_get_expansion_filename): Likewise.
(linemap_location_in_system_header_p): Likewise.
(linemap_location_from_macro_expansion_p): Likewise.
(linemap_macro_loc_to_exp_point): Likewise.
(linemap_resolve_location): Likewise.
(linemap_unwind_toward_expansion): Likewise.
(linemap_unwind_to_first_non_reserved_loc): Likewise.
(linemap_expand_location): Likewise.
(linemap_dump_location): Likewise.
From-SVN: r271162
Diffstat (limited to 'libcpp/include')
-rw-r--r-- | libcpp/include/line-map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h index 6c77c28..7649700 100644 --- a/libcpp/include/line-map.h +++ b/libcpp/include/line-map.h @@ -1054,8 +1054,8 @@ extern location_t get_combined_adhoc_loc (struct line_maps *, location_t, source_range, void *); -extern void *get_data_from_adhoc_loc (struct line_maps *, location_t); -extern location_t get_location_from_adhoc_loc (struct line_maps *, +extern void *get_data_from_adhoc_loc (const struct line_maps *, location_t); +extern location_t get_location_from_adhoc_loc (const struct line_maps *, location_t); extern source_range get_range_from_loc (line_maps *set, location_t loc); |