commit | 449df9698f30cf3a9d6bba2c42f79c0f5714d428 | [log] [tgz] |
---|---|---|
author | Anton Korobeynikov <asl@math.spbu.ru> | Thu May 13 07:41:57 2010 +0000 |
committer | Anton Korobeynikov <asl@math.spbu.ru> | Thu May 13 07:41:57 2010 +0000 |
tree | 24bfb1738bfd3a9eeb5a1bb156dbd01811ed81f3 | |
parent | 3e7199b286a5ea6e591714d3d6f912e3c311ca1d [diff] [blame] |
Properly set thread-local flag on globals during cpp emission llvm-svn: 103702
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 28345b2..45a0c84 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp
@@ -1038,6 +1038,11 @@ Out << ");"; nl(Out); } + if (GV->isThreadLocal()) { + printCppName(GV); + Out << "->setThreadLocal(true);"; + nl(Out); + } if (is_inline) { out(); Out << "}"; nl(Out); }