[TargetMachine] Don't try to create COFFSTUB references on windows on non-COFF
commitf12390d9f5973a254b5b6c64a18880a704d10034
authorMartin Storsjo <martin@martin.st>
Tue, 20 Aug 2019 18:58:05 +0000 (20 18:58 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 20 Aug 2019 18:58:05 +0000 (20 18:58 +0000)
treea87cd7663868ed9384751a9dd381690769b8bac4
parentd6c1c3b13a091f3e0691bef01759f28e5740ea70
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369426 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/TargetMachine.cpp
lib/Target/X86/X86Subtarget.cpp
test/CodeGen/X86/mingw-refptr.ll