about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto/msvc-imp-present.rs
AgeCommit message (Collapse)AuthorLines
2017-10-18rustc: Add `_imp_` symbols later in compilationAlex Crichton-0/+31
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