Implement the "thread_local" keyword.
[oota-llvm.git] / lib / VMCore / AsmWriter.cpp
index f9bac802ff69cc2b6a128b0593c879eff9b9c843..487d7e6a05d0c2a5e6f3f04a392d6a893f4079d8 100644 (file)
@@ -878,7 +878,8 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
     case GlobalValue::HiddenVisibility: Out << "hidden "; break;
     }
   }
-  
+
+  if (GV->isThreadLocal()) Out << "thread_local ";
   Out << (GV->isConstant() ? "constant " : "global ");
   printType(GV->getType()->getElementType());