[llvm-commits] [llvm] r103702 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Anton Korobeynikov
asl at math.spbu.ru
Thu May 13 00:41:57 PDT 2010
Author: asl
Date: Thu May 13 02:41:57 2010
New Revision: 103702
URL: http://llvm.org/viewvc/llvm-project?rev=103702&view=rev
Log:
Properly set thread-local flag on globals during cpp emission
Modified:
llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=103702&r1=103701&r2=103702&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Thu May 13 02:41:57 2010
@@ -1038,6 +1038,11 @@
Out << ");";
nl(Out);
}
+ if (GV->isThreadLocal()) {
+ printCppName(GV);
+ Out << "->setThreadLocal(true);";
+ nl(Out);
+ }
if (is_inline) {
out(); Out << "}"; nl(Out);
}
More information about the llvm-commits
mailing list