lto-streamer-in.c: Include alloc-pool.h.
authorJan Hubicka <hubicka@gcc.gnu.org>
Thu, 7 Nov 2019 17:06:04 +0000 (17:06 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 7 Nov 2019 17:06:04 +0000 (17:06 +0000)
commitc38ee9a2e87ea6d23580c364b3997acfce4a125c
tree4e7df7e181a2561c419bfaf86691f41d43e95adc
parent095f78c62157124ad479a3f98b6995ced090b807
lto-streamer-in.c: Include alloc-pool.h.

* lto-streamer-in.c: Include alloc-pool.h.
(freeing_string_slot_hasher): Remove.
(string_slot_allocator): New object allocator.
(file_name_hash_table): Turn to hash_table<string_slot_hasher>.
(file_name_obstack): New obstack.
(canon_file_name): Allocate in obstack and allocator.
(lto_reader_init): Initialize obstack and allocator.
(lto_free_file_name_hash): New function.
* lto-streamer.h (lto_free_file_name_hash): New.
* lto.c (do_whole_program_analysis): Call lto_free_file_name_hash.

From-SVN: r277924
gcc/ChangeLog
gcc/lto-streamer-in.c
gcc/lto-streamer.h
gcc/lto/ChangeLog
gcc/lto/lto.c