summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorAlexander Musman <alexander.musman@gmail.com>2014-07-17 08:54:58 +0000
committerAlexander Musman <alexander.musman@gmail.com>2014-07-17 08:54:58 +0000
commit80c2289a03f8a993b2377993a873242a62116c58 (patch)
tree884ff25047b61490212bc094c568afb654d56757 /clang/lib/AST/StmtPrinter.cpp
parentc790515c8b2f395cc259030532992a4497b5daa8 (diff)
downloadbcm5719-llvm-80c2289a03f8a993b2377993a873242a62116c58.tar.gz
bcm5719-llvm-80c2289a03f8a993b2377993a873242a62116c58.zip
[OPENMP] Parsing/Sema analysis of directive 'master'
llvm-svn: 213237
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index 5958dacf3a8..fd511ef465d 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -821,6 +821,11 @@ void StmtPrinter::VisitOMPSingleDirective(OMPSingleDirective *Node) {
PrintOMPExecutableDirective(Node);
}
+void StmtPrinter::VisitOMPMasterDirective(OMPMasterDirective *Node) {
+ Indent() << "#pragma omp master";
+ PrintOMPExecutableDirective(Node);
+}
+
void StmtPrinter::VisitOMPParallelForDirective(OMPParallelForDirective *Node) {
Indent() << "#pragma omp parallel for ";
PrintOMPExecutableDirective(Node);
OpenPOWER on IntegriCloud