rust/src/test/run-pass/thinlto
bors 6511b4f7ee Auto merge of #45348 - alexcrichton:thinlto-timp, r=michaelwoerister
rustc: Add `_imp_` symbols later in compilation

On MSVC targets rustc will add symbols prefixed with `_imp_` to LLVM modules to
"emulate" dllexported statics as that workaround is still in place after #27438
hasn't been solved otherwise. These statics, however, were getting gc'd by
ThinLTO accidentally which later would cause linking failures.

This commit updates the location we add such symbols to happen just before
codegen to ensure that (a) they're not eliminated by the optimizer and (b) the
optimizer doesn't even worry about them.

Closes #45347
2017-10-20 23:08:17 +00:00
..
auxiliary rustc: Add _imp_ symbols later in compilation 2017-10-18 07:01:29 -07:00
dylib-works.rs
msvc-imp-present.rs rustc: Add _imp_ symbols later in compilation 2017-10-18 07:01:29 -07:00
thin-lto-inlines.rs test: Update Emscripten failures/passing 2017-10-17 18:46:38 -07:00
thin-lto-inlines2.rs test: Update Emscripten failures/passing 2017-10-17 18:46:38 -07:00