Properly set thread-local flag on globals during cpp emission

llvm-svn: 103702
This commit is contained in:
Anton Korobeynikov 2010-05-13 07:41:57 +00:00
parent e343761a2a
commit fa0c92ab6c

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