Do a refactoring in linemap (PR preprocessor/90382).
authorMartin Liska <mliska@suse.cz>
Tue, 14 May 2019 11:41:40 +0000 (13:41 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 14 May 2019 11:41:40 +0000 (11:41 +0000)
commite6fc8353fcfc15827c6a3c3dc97538f3507878d3
treea4a2f49f1546e7a78bd144404af6fa4fd3ce83a8
parentc688848d6a0c826a3e61d5a5e338f07578e71624
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
libcpp/ChangeLog
libcpp/include/line-map.h
libcpp/line-map.c