diff options
author | Enea Zaffanella <zaffanella@cs.unipr.it> | 2013-05-04 08:27:07 +0000 |
---|---|---|
committer | Enea Zaffanella <zaffanella@cs.unipr.it> | 2013-05-04 08:27:07 +0000 |
commit | dc17384581e37436582a007be4d9185bcf7003ec (patch) | |
tree | b7475572aadba2ea806cedb1b971a008b7ed6b2c /lib/AST | |
parent | ff920eec4d449bee560d8d99636ad0eb50cd9d8d (diff) |
In VarDecl nodes, store the thread storage class specifier as written.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST')
-rw-r--r-- | lib/AST/DeclPrinter.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index ba590d61c8..d47972bc61 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/lib/AST/DeclPrinter.cpp @@ -647,13 +647,16 @@ void DeclPrinter::VisitVarDecl(VarDecl *D) { if (SC != SC_None) Out << VarDecl::getStorageClassSpecifierString(SC) << " "; - switch (D->getTLSKind()) { - case VarDecl::TLS_None: + switch (D->getTSCSpec()) { + case TSCS_unspecified: break; - case VarDecl::TLS_Static: + case TSCS___thread: + Out << "__thread "; + break; + case TSCS__Thread_local: Out << "_Thread_local "; break; - case VarDecl::TLS_Dynamic: + case TSCS_thread_local: Out << "thread_local "; break; } |