]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #55609 - nikic:fix-51947, r=nagisa
authorkennytm <kennytm@gmail.com>
Wed, 7 Nov 2018 10:01:54 +0000 (18:01 +0800)
committerGitHub <noreply@github.com>
Wed, 7 Nov 2018 10:01:54 +0000 (18:01 +0800)
Run name-anon-globals after LTO passes as well

If we're going to emit bitcode (through ThinLTOBuffer), then we need to ensure that anon globals are named. This was already done after optimization passes, but also has to happen after LTO passes, as we always emit the final result in a ThinLTO-compatible manner.

I added the test as `run-make`. The important bit is that we emit bitcode in some way (e.g. `--crate-type rlib` or `--emit=llvm-bc`). Please tell me if there is a better way to test for that.

Fixes #51947


Trivial merge