summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-04-12 18:32:50 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-04-12 18:32:50 +0000
commit749e4668e76ae37566a315b4ace09f306cceb25b (patch)
tree8e72739fa607eb1df1fb6e465f7bc87076ac6d1a /llvm/lib/VMCore/AsmWriter.cpp
parentce10cd22c88aa7cd5c407e7c71821f62e90eca32 (diff)
downloadbcm5719-llvm-749e4668e76ae37566a315b4ace09f306cceb25b.tar.gz
bcm5719-llvm-749e4668e76ae37566a315b4ace09f306cceb25b.zip
Implement the "thread_local" keyword.
llvm-svn: 35950
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index f9bac802ff6..487d7e6a05d 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -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());
OpenPOWER on IntegriCloud