summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2013-03-22 06:34:35 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2013-03-22 06:34:35 +0000
commita769e07232d2ebac3ff6846c48af3e086f59ff56 (patch)
treeecc5dbdceef9bf9603bdba29e49a9e5203313de7 /clang/lib/Parse/ParseStmt.cpp
parentde0beaa8f8024c4f8b86718a0f2071b136655fa5 (diff)
downloadbcm5719-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.cpp5
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.
OpenPOWER on IntegriCloud