OSDN Git Service

Merging r369426 and r369443:
authorHans Wennborg <hans@hanshq.net>
Thu, 22 Aug 2019 14:28:05 +0000 (14:28 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 22 Aug 2019 14:28:05 +0000 (14:28 +0000)
commit2fcd2ae8a82e222d31e37bac540eb0a40854c334
treebb1bfa18b4436dd9d78559eea51e9ffe07c098d8
parenta6aeb619e0c2b583011a8c5852b21b2734a8ebb5
Merging r369426 and r369443:

------------------------------------------------------------------------
r369426 | mstorsjo | 2019-08-20 20:58:05 +0200 (Tue, 20 Aug 2019) | 5 lines

[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
------------------------------------------------------------------------

------------------------------------------------------------------------
r369443 | mstorsjo | 2019-08-20 22:58:02 +0200 (Tue, 20 Aug 2019) | 11 lines

[test] Fix tests when run on windows after SVN r369426. NFC.

When running tests on windows, invoking "llc -march=<arch>" will
implicitly use windows as the target os, making these tests misbehave
after this change.

Fix the issue by using more specific -mtriple values instead of plain
-march in these tests.

This should hopefully fix buildbot failures like
http://lab.llvm.org:8011/builders/clang-x64-windows-msvc/builds/9816.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_90@369654 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/TargetMachine.cpp
lib/Target/X86/X86Subtarget.cpp
test/CodeGen/AMDGPU/propagate-attributes-bitcast-function.ll
test/CodeGen/AMDGPU/propagate-attributes-clone.ll
test/CodeGen/AMDGPU/propagate-attributes-single-set.ll
test/CodeGen/Hexagon/pic-jt-big.ll
test/CodeGen/Hexagon/pic-sdata.ll
test/CodeGen/SPARC/tls.ll
test/CodeGen/X86/mingw-refptr.ll