about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-11-07 18:01:54 +0800
committerGitHub <noreply@github.com>2018-11-07 18:01:54 +0800
commitdfa104ecf12d3b9d1349aae0438d144554955f3c (patch)
tree667551a81afabecfb8bd310b46632f4c1065b190 /src/rustllvm/RustWrapper.cpp
parent0708a6a7174d1dcff84cb44d2481fa3ff98cadac (diff)
parent66702fcd0ae34100aaf74a9bdf8da77b6e273616 (diff)
downloadrust-dfa104ecf12d3b9d1349aae0438d144554955f3c.tar.gz
rust-dfa104ecf12d3b9d1349aae0438d144554955f3c.zip
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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions