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 | 61aeed11cd6cd77e9fc9ce4b5e52bbf81190f4bb (patch) | |
tree | 37e4c04d07030f7c4c4cca056aa20fc6206241c4 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 911ae391e85ead1bb11895562a6bbdb2c0f8ebd2 (diff) |
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
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-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 28345b2937..45a0c84a4f 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); } |