summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2013-10-01 05:32:34 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2013-10-01 05:32:34 +0000
commitd5af8e472d6016f3dca2a33fa9d92bcf35aad43b (patch)
tree833c55056134f116b594e8e3db9a3c64d0e7ec03 /clang/lib/AST/StmtPrinter.cpp
parentde111a425c0a8e38e4a60f1c5ca310546717a876 (diff)
downloadbcm5719-llvm-d5af8e472d6016f3dca2a33fa9d92bcf35aad43b.tar.gz
bcm5719-llvm-d5af8e472d6016f3dca2a33fa9d92bcf35aad43b.zip
[OpenMP] Added parsing and semantic analysis for firstprivate clause
llvm-svn: 191730
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index 1bbd4667fc5..55cfd3f8134 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -619,6 +619,14 @@ void OMPClausePrinter::VisitOMPPrivateClause(OMPPrivateClause *Node) {
}
}
+void OMPClausePrinter::VisitOMPFirstprivateClause(OMPFirstprivateClause *Node) {
+ if (!Node->varlist_empty()) {
+ OS << "firstprivate";
+ VisitOMPClauseList(Node, '(');
+ OS << ")";
+ }
+}
+
void OMPClausePrinter::VisitOMPSharedClause(OMPSharedClause *Node) {
if (!Node->varlist_empty()) {
OS << "shared";
OpenPOWER on IntegriCloud