]> granicus.if.org Git - clang/commit
[HIP] Add -fvisibility hidden option to clang
authorYaxun Liu <Yaxun.Liu@amd.com>
Thu, 30 Aug 2018 15:10:20 +0000 (15:10 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Thu, 30 Aug 2018 15:10:20 +0000 (15:10 +0000)
commit982b9705464e6f68def5e27683fccacac2ba1cea
treedf80d45c5617ddb2e3e72d5dd3f69b5949673ff2
parent5204bd3692cf147bc0309158b725235b219e419a
[HIP] Add -fvisibility hidden option to clang

AMDGPU target need -fvisibility hidden option for clang to
work around a limitation of no PLT support, otherwise there is compilation
error at -O0.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341077 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/HIP.cpp
test/Driver/hip-toolchain.hip