diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-05-13 07:41:57 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-05-13 07:41:57 +0000 |
| commit | f4c88c70f10276662db81cb5c0130f4649551a64 (patch) | |
| tree | 37e4c04d07030f7c4c4cca056aa20fc6206241c4 | |
| parent | 7acc8bc5a8a0287a6c47c3b0a72cc3acc1a72d5d (diff) | |
| download | external_llvm-f4c88c70f10276662db81cb5c0130f4649551a64.zip external_llvm-f4c88c70f10276662db81cb5c0130f4649551a64.tar.gz external_llvm-f4c88c70f10276662db81cb5c0130f4649551a64.tar.bz2 | |
Properly set thread-local flag on globals during cpp emission
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103702 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 28345b2..45a0c84 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -1038,6 +1038,11 @@ namespace { Out << ");"; nl(Out); } + if (GV->isThreadLocal()) { + printCppName(GV); + Out << "->setThreadLocal(true);"; + nl(Out); + } if (is_inline) { out(); Out << "}"; nl(Out); } |
