]> granicus.if.org Git - clang/commit
Merging r351457:
authorHans Wennborg <hans@hanshq.net>
Fri, 18 Jan 2019 09:32:52 +0000 (09:32 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 18 Jan 2019 09:32:52 +0000 (09:32 +0000)
commit466291e83811ac6aa2e2c59b198dae1acc486f9b
treef9ba43bbadf27d4a2b1bea83850ca78eb7f3bb92
parent7a774cbdb52012ac7f752f782c55c4c167c4477d
Merging r351457:
------------------------------------------------------------------------
r351457 | vlad.tsyrklevich | 2019-01-17 18:53:45 +0100 (Thu, 17 Jan 2019) | 15 lines

TLS: Respect visibility for thread_local variables on Darwin (PR40327)

Summary:
Teach clang to mark thread wrappers for thread_local variables with
hidden visibility when the original variable is marked with hidden
visibility. This is necessary on Darwin which exposes the thread wrapper
instead of the thread variable. The thread wrapper would previously
always be created with default visibility unless it had
linkonce*/weak_odr linkage.

Reviewers: rjmccall

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D56818
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_80@351533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ItaniumCXXABI.cpp
test/CodeGenCXX/cxx11-thread-local-visibility.cpp [new file with mode: 0644]
test/CodeGenCXX/cxx11-thread-local.cpp