Files
gcc/libcpp
David Malcolm 45bae1809c libcpp: eliminate LINEMAPS_{,ORDINARY_,MACRO_}CACHE
It's simpler to use field access than to go through these inline
functions that look as if they are macros.

No functional change intended.

libcpp/ChangeLog:
	* include/line-map.h (maps_info_ordinary::cache): Rename to...
	(maps_info_ordinary::m_cache): ...this.
	(maps_info_macro::cache): Rename to...
	(maps_info_macro::m_cache): ...this.
	(LINEMAPS_CACHE): Delete.
	(LINEMAPS_ORDINARY_CACHE): Delete.
	(LINEMAPS_MACRO_CACHE): Delete.
	* init.cc (read_original_filename): Update for adding "m_" prefix.
	* line-map.cc (linemap_add): Eliminate LINEMAPS_ORDINARY_CACHE in
	favor of a simple field access.
	(linemap_enter_macro): Likewise for LINEMAPS_MACRO_CACHE.
	(linemap_ordinary_map_lookup): Likewise for
	LINEMAPS_ORDINARY_CACHE, twice.
	(linemap_lookup_macro_index): Likewise for LINEMAPS_MACRO_CACHE.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
2023-10-08 18:43:17 -04:00
..
2023-05-10 00:17:49 +00:00
2023-09-21 00:17:49 +00:00
2022-11-21 09:03:35 +01:00
2023-08-07 22:59:40 +02:00
2023-01-16 11:52:17 +01:00
2023-09-06 17:39:15 +02:00
2023-01-16 11:52:17 +01:00
2023-10-08 18:43:16 -04:00
2023-10-08 18:43:16 -04:00
2023-01-16 11:52:17 +01:00
2023-09-19 17:32:23 -04:00
2023-01-16 11:52:17 +01:00
2023-01-16 11:52:17 +01:00
2023-01-16 11:52:17 +01:00
2023-03-16 10:19:04 +01:00
2023-01-16 11:52:17 +01:00