OSDN Git Service

[HIP] Use default triple in llvm-mc for system ld
authorAaron En Ye Shi <enye.shi@gmail.com>
Thu, 2 Jul 2020 20:13:19 +0000 (20:13 +0000)
committerAaron En Ye Shi <enye.shi@gmail.com>
Tue, 7 Jul 2020 16:44:51 +0000 (16:44 +0000)
commitc64bb3f7367a924e9d17dfccccc1c92897e6cbe1
tree1d78e5d4cb2a9538f6d25994e81773ac6de7fec0
parent1c956a3eb934fffd719ab027829d616e762eca2d
[HIP] Use default triple in llvm-mc for system ld

The Ubuntu system ld does not recognize the amdgcn-amd-amdhsa target.
Instead the host object with embedded device fat binary should not be
assembled by that triple. It should use default triple, so that the
object is compatible with system ld.

Reviewed By: yaxunl

Differential Revision: https://reviews.llvm.org/D83145
clang/lib/Driver/ToolChains/HIP.cpp
clang/test/Driver/hip-link-save-temps.hip
clang/test/Driver/hip-toolchain-rdc-separate.hip
clang/test/Driver/hip-toolchain-rdc-static-lib.hip
clang/test/Driver/hip-toolchain-rdc.hip