[HIP] Fix visibility of `__constant__` variables.
authorMichael Liao <michael.hliao@gmail.com>
Fri, 26 Apr 2019 19:31:48 +0000 (19:31 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Fri, 26 Apr 2019 19:31:48 +0000 (19:31 +0000)
commit3820506960e058b04078e8301404474164fb2628
treeb02c5d2116bdd049738a6d399a3dc862b4688a7b
parent9534e9dbe44c130acefb48bd87b3e7d78db72def
[HIP] Fix visibility of `__constant__` variables.

Summary:
- `__constant__` variables should not be `hidden` as the linker may turn
  them into `LOCAL` symbols.

Reviewers: yaxunl

Subscribers: jvesely, nhaehnle, cfe-commits

Tags: #clang

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

llvm-svn: 359344
clang/lib/CodeGen/TargetInfo.cpp
clang/test/CodeGenCUDA/amdgpu-visibility.cu [new file with mode: 0644]