[TargetMachine] Clean up TargetMachine::shouldAssumeDSOLocal after x86-32 specific...
authorFangrui Song <i@maskray.me>
Sat, 5 Dec 2020 23:13:41 +0000 (15:13 -0800)
committerFangrui Song <i@maskray.me>
Sat, 5 Dec 2020 23:13:42 +0000 (15:13 -0800)
commit930b3398c7e4b3b15a9f262a2856d11fb2071eb7
tree5853fcd5ee03936b299af86fd0bcb7e050983ac4
parenta084c0388e2a59b9556f2de0083333232da3f1d6
[TargetMachine] Clean up TargetMachine::shouldAssumeDSOLocal after x86-32 specific hack is moved to X86Subtarget

With my previous commit, X86Subtarget::classifyGlobalReference has learned to
use MO_NO_FLAG for 32-bit ELF -fno-pic code, the x86-32 special case in
TargetMachine::shouldAssumeDSOLocal can be removed. Since we no longer imply
dso_local for function declarations, we can drop the ppc64 special case as well.

This is NFC in terms of Clang emitted assembly.
llvm/lib/Target/TargetMachine.cpp
llvm/test/CodeGen/X86/abi-isel.ll