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 | 449df9698f30cf3a9d6bba2c42f79c0f5714d428 (patch) | |
tree | 24bfb1738bfd3a9eeb5a1bb156dbd01811ed81f3 /llvm/lib/Target/CppBackend | |
parent | 3e7199b286a5ea6e591714d3d6f912e3c311ca1d (diff) | |
download | bcm5719-llvm-449df9698f30cf3a9d6bba2c42f79c0f5714d428.tar.gz bcm5719-llvm-449df9698f30cf3a9d6bba2c42f79c0f5714d428.zip |
Properly set thread-local flag on globals during cpp emission
llvm-svn: 103702
Diffstat (limited to 'llvm/lib/Target/CppBackend')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 28345b29379..45a0c84a4f0 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/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); } |