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
This commit is contained in:
Anton Korobeynikov 2010-05-13 07:41:57 +00:00
parent 911ae391e8
commit 61aeed11cd

View File

@ -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);
}