summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-06-18 04:14:57 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-06-18 04:14:57 +0000
commitf29276edb7b9c85c9f521eb3e301259bee17aa33 (patch)
tree5173803cd839d4c3ab843cd43945471c7296784f /clang/lib/AST/StmtPrinter.cpp
parent0039f3f0607702f2d16d60addff74c67869e2144 (diff)
downloadbcm5719-llvm-f29276edb7b9c85c9f521eb3e301259bee17aa33.tar.gz
bcm5719-llvm-f29276edb7b9c85c9f521eb3e301259bee17aa33.zip
[OPENMP] Initial support for '#pragma omp for' (fixed incompatibility with MSVC).
llvm-svn: 211140
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 fdf2d545019..16330a46fe0 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -764,6 +764,11 @@ void StmtPrinter::VisitOMPSimdDirective(OMPSimdDirective *Node) {
PrintOMPExecutableDirective(Node);
}
+void StmtPrinter::VisitOMPForDirective(OMPForDirective *Node) {
+ Indent() << "#pragma omp for ";
+ PrintOMPExecutableDirective(Node);
+}
+
//===----------------------------------------------------------------------===//
// Expr printing methods.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud