]> git.lizzy.rs Git - rust.git/commit
If an LLVM module's exports change, cannot reuse its post-LTO object file in
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 14 Apr 2020 13:47:03 +0000 (09:47 -0400)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Tue, 14 Apr 2020 13:47:03 +0000 (09:47 -0400)
commite542f4fa59a2d1ae33bebcd1e11149f7644db5da
tree3b5b072be37c51aa705237979044109ea26a0116
parent5179ebe2064e15196c5be1f8df950736140b8fdd
If an LLVM module's exports change, cannot reuse its post-LTO object file in
incremental compilation.

This is symmetric to PR #67020, which handled the case where the LLVM module's
*imports* changed. This commit builds upon the infrastructure added there; the
export map is just the inverse of the import map, so we can build the export map
at the same time that we load the serialized import map.

Fix #69798
src/librustc_codegen_llvm/back/lto.rs