[TargetMachine] Don't try to create COFFSTUB references on windows on non-COFF
authorMartin Storsjo <martin@martin.st>
Tue, 20 Aug 2019 18:58:05 +0000 (18:58 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 20 Aug 2019 18:58:05 +0000 (18:58 +0000)
commit514f3a122d659dc45f272a1a519387680e221ffd
treeecb467937ae8c870af45822eab5e3abb4f1fff7a
parent8a91aa53a062a03e19e26e896ffdd10ffc67801b
[TargetMachine] Don't try to create COFFSTUB references on windows on non-COFF

This avoids spurious relocation types for windows/elf targets.

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

llvm-svn: 369426
llvm/lib/Target/TargetMachine.cpp
llvm/lib/Target/X86/X86Subtarget.cpp
llvm/test/CodeGen/X86/mingw-refptr.ll