[MinGW] Move code for indicating "potentially not DSO local" into shouldAssumeDSOLoca...
authorMartin Storsjo <martin@martin.st>
Tue, 4 Sep 2018 20:56:28 +0000 (20:56 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 4 Sep 2018 20:56:28 +0000 (20:56 +0000)
commit68df812cceaccda7cc0d83aa38db3225b3b53652
tree53f7cdcb7a7fbf853faa36beb7793848c3ec5515
parentfed420d6b6769bc0b97755345f1072fcb530fb89
[MinGW] Move code for indicating "potentially not DSO local" into shouldAssumeDSOLocal. NFC.

On Windows, if shouldAssumeDSOLocal returns false, it's either a
dllimport reference, or a reference that we should treat as non-local
and create a stub for.

Clean up AArch64Subtarget::ClassifyGlobalReference a little while
touching the flag handling relating to dllimport.

Differential Revision: https://reviews.llvm.org/D51590

llvm-svn: 341402
llvm/lib/Target/AArch64/AArch64Subtarget.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/TargetMachine.cpp
llvm/lib/Target/X86/X86Subtarget.cpp