diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-22 08:06:17 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-22 08:06:17 +0000 |
| commit | 1847baa20e02284d85007f3eea9a7d4c040650aa (patch) | |
| tree | 1e8f7407e339a876596e434ad39747ec743d923d /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | e206e6e80aa64bbffe7c902a00ea056ac89a3632 (diff) | |
| download | bcm5719-llvm-1847baa20e02284d85007f3eea9a7d4c040650aa.tar.gz bcm5719-llvm-1847baa20e02284d85007f3eea9a7d4c040650aa.zip | |
Don't emit _ZTW wrappers for TLS variables which don't use the C++ thread_local keyword.
llvm-svn: 180004
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index fdd35684722..5a10602589f 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1479,7 +1479,8 @@ CodeGenModule::GetOrCreateLLVMGlobal(StringRef MangledName, } if (D->getTLSKind()) { - CXXThreadLocals.push_back(std::make_pair(D, GV)); + if (D->getTLSKind() == VarDecl::TLS_Dynamic) + CXXThreadLocals.push_back(std::make_pair(D, GV)); setTLSMode(GV, *D); } } |

