diff options
| author | David Majnemer <david.majnemer@gmail.com> | 2014-07-11 20:28:10 +0000 |
|---|---|---|
| committer | David Majnemer <david.majnemer@gmail.com> | 2014-07-11 20:28:10 +0000 |
| commit | 9b21c33da44985b59e637ee3a235ad1fb3472c60 (patch) | |
| tree | 42666061684dd195d1b58270fd21a276fc9288ff /llvm/lib/CodeGen/DFAPacketizer.cpp | |
| parent | 83510e70a9fd0bd2bbe474f510e037937dd6abc7 (diff) | |
| download | bcm5719-llvm-9b21c33da44985b59e637ee3a235ad1fb3472c60.tar.gz bcm5719-llvm-9b21c33da44985b59e637ee3a235ad1fb3472c60.zip | |
CodeGen: Don't emit a thread-wrapper if we can't touch the backing variable
OS X TLS has all accesses going through the thread-wrapper function and
gives the backing thread-local variable internal linkage. This means
that thread-wrappers must have WeakAnyLinkage so that references to the
internal thread-local variables do not get propagated to other code.
It also means that translation units which do not provide a definition
for the thread-local variable cannot attempt to emit a thread-wrapper
because the thread wrapper will attempt to reference the backing
variable.
Differential Revision: http://reviews.llvm.org/D4109
llvm-svn: 212841
Diffstat (limited to 'llvm/lib/CodeGen/DFAPacketizer.cpp')
0 files changed, 0 insertions, 0 deletions

