Save discriminator info for LTO
authorAlexandre Oliva <oliva@adacore.com>
Tue, 31 Jul 2018 21:19:25 +0000 (21:19 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 31 Jul 2018 21:19:25 +0000 (21:19 +0000)
commitb348c78aa4ab72ea533a01ad24311f45b0b4f4cb
tree9077f5e87e913aebb0359956c2af7b904205d824
parentfa6fd7b7afece6e0cfe197c9419ea3346d3c60b2
Save discriminator info for LTO

for  gcc/ChangeLog

* gimple-streamer-in.c (input_bb): Restore BB discriminator.
* gimple-streamer-out.c (output_bb): Save it.
* lto-streamer-in.c (input_struct_function_base): Restore
instance discriminator if available.  Create map on demand.
* lto-streamer-out.c (output_struct_function_base): Save it if
available.
* final.c (decl_to_instance_map): Document LTO strategy.

From-SVN: r263183
gcc/ChangeLog
gcc/final.c
gcc/gimple-streamer-in.c
gcc/gimple-streamer-out.c
gcc/lto-streamer-in.c
gcc/lto-streamer-out.c