]> granicus.if.org Git - clang/commit
[CUDA] __global__ functions should always be visible externally.
authorArtem Belevich <tra@google.com>
Wed, 23 Sep 2015 17:44:53 +0000 (17:44 +0000)
committerArtem Belevich <tra@google.com>
Wed, 23 Sep 2015 17:44:53 +0000 (17:44 +0000)
commitb7a9667a4192f47243f2fc4bb2665d421c3d52ad
treebb5582c16b76cf8b670ba2da72791696fe230953
parent4bb5c31d2c26e4fe2cd6d0fede53293ea6dfff66
[CUDA] __global__ functions should always be visible externally.

Adjust __global__ functions with DiscardableODR linkage to use
StrongODR linkage instead, so they are visible externally.

Differential Revision: http://reviews.llvm.org/D13067

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248400 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
lib/Sema/SemaDeclAttr.cpp
test/CodeGenCUDA/ptx-kernels.cu