diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2013-03-22 06:34:35 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2013-03-22 06:34:35 +0000 |
commit | a769e07232d2ebac3ff6846c48af3e086f59ff56 (patch) | |
tree | ecc5dbdceef9bf9603bdba29e49a9e5203313de7 /clang/lib/Parse/ParseStmt.cpp | |
parent | de0beaa8f8024c4f8b86718a0f2071b136655fa5 (diff) | |
download | bcm5719-llvm-a769e07232d2ebac3ff6846c48af3e086f59ff56.tar.gz bcm5719-llvm-a769e07232d2ebac3ff6846c48af3e086f59ff56.zip |
OpenMP threadprivate directive parsing and semantic analysis
llvm-svn: 177705
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r-- | clang/lib/Parse/ParseStmt.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp index 5833fc1e1ba..6db47a01571 100644 --- a/clang/lib/Parse/ParseStmt.cpp +++ b/clang/lib/Parse/ParseStmt.cpp @@ -288,6 +288,11 @@ Retry: ProhibitAttributes(Attrs); HandlePragmaOpenCLExtension(); return StmtEmpty(); + + case tok::annot_pragma_openmp: + SourceLocation DeclStart = Tok.getLocation(); + DeclGroupPtrTy Res = ParseOpenMPDeclarativeDirective(); + return Actions.ActOnDeclStmt(Res, DeclStart, Tok.getLocation()); } // If we reached this code, the statement must end in a semicolon. |