[TargetMachine] Drop implied dso_local for an edge case (extern_weak + non-pic +...
authorFangrui Song <i@maskray.me>
Sat, 5 Dec 2020 23:52:33 +0000 (15:52 -0800)
committerFangrui Song <i@maskray.me>
Sat, 5 Dec 2020 23:52:33 +0000 (15:52 -0800)
commit109e70d357284f612fbe69d213b002366dd67927
tree2e4467e5335e2a43ee1e0547d0e23b2c79e06e26
parenta553ac979146df59f0688882018dbb66f345c8f8
[TargetMachine] Drop implied dso_local for an edge case (extern_weak + non-pic + hidden)

This does not deserve special handling. The code should be added to Clang
instead if deemed useful. With this simplification, we can additionally delete
the PIC extern_weak special case.
llvm/lib/Target/TargetMachine.cpp
llvm/test/CodeGen/ARM/hidden-vis-3.ll
llvm/test/CodeGen/X86/hidden-vis-3.ll