From: kennytm Date: Wed, 7 Nov 2018 10:01:54 +0000 (+0800) Subject: Rollup merge of #55609 - nikic:fix-51947, r=nagisa X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=dfa104ecf12d3b9d1349aae0438d144554955f3c;p=rust.git Rollup merge of #55609 - nikic:fix-51947, r=nagisa 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 --- dfa104ecf12d3b9d1349aae0438d144554955f3c