rust/compiler/rustc_llvm
Simonas Kazlauskas 2f000a78bf Manually set dso_local when its valid to do so
This should have no real effect in most cases, as e.g. `hidden`
visibility already implies `dso_local` (or at least LLVM IR does not
preserve the `dso_local` setting if the item is already `hidden`), but
it should fix `-Crelocation-model=static` and improve codegen in
executables.

Note that this PR does not exhaustively port the logic in [clang]. Only
the obviously correct portion and what is necessary to fix a regression
from LLVM 12 that relates to `-Crelocation_model=static`.

Fixes #83335

[clang]: 3001d080c8/clang/lib/CodeGen/CodeGenModule.cpp (L945-L1039)
2021-04-03 00:00:29 +03:00
..
llvm-wrapper Manually set dso_local when its valid to do so 2021-04-03 00:00:29 +03:00
src All supported LLVM versions have MSP430AsmPrinter 2021-03-22 12:44:48 -07:00
build.rs All supported LLVM versions have MSP430AsmPrinter 2021-03-22 12:44:48 -07:00
Cargo.toml