projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement the "thread_local" keyword.
[oota-llvm.git]
/
lib
/
VMCore
/
AsmWriter.cpp
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index f9bac802ff69cc2b6a128b0593c879eff9b9c843..487d7e6a05d0c2a5e6f3f04a392d6a893f4079d8 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
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());