summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-07-22 10:10:35 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-07-22 10:10:35 +0000
commit0162e459efac896816898588f6bbcf1fae43df41 (patch)
tree57ff192fe3ebc50146104d8f26269f0646ff3e3b /clang/lib/AST/StmtPrinter.cpp
parent9fb6e647e71678341e7a344051df439a1020aaf4 (diff)
downloadbcm5719-llvm-0162e459efac896816898588f6bbcf1fae43df41.tar.gz
bcm5719-llvm-0162e459efac896816898588f6bbcf1fae43df41.zip
[OPENMP] Initial parsing and sema analysis for 'atomic' directive.
llvm-svn: 213639
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 e8fbdf45390..959c45acc6a 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -891,6 +891,11 @@ void StmtPrinter::VisitOMPOrderedDirective(OMPOrderedDirective *Node) {
PrintOMPExecutableDirective(Node);
}
+void StmtPrinter::VisitOMPAtomicDirective(OMPAtomicDirective *Node) {
+ Indent() << "#pragma omp atomic ";
+ PrintOMPExecutableDirective(Node);
+}
+
//===----------------------------------------------------------------------===//
// Expr printing methods.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud