diff options
| author | Alexander Musman <alexander.musman@gmail.com> | 2014-05-29 14:36:25 +0000 |
|---|---|---|
| committer | Alexander Musman <alexander.musman@gmail.com> | 2014-05-29 14:36:25 +0000 |
| commit | f0d76e7dc3e5ca3969e44fd40417a0e568493a4e (patch) | |
| tree | 15545611be68d7376c675f090b963a20e7046ec5 /clang/lib/AST/StmtPrinter.cpp | |
| parent | fa5c0750f0fa18424de62878f0d717fee861cb9d (diff) | |
| download | bcm5719-llvm-f0d76e7dc3e5ca3969e44fd40417a0e568493a4e.tar.gz bcm5719-llvm-f0d76e7dc3e5ca3969e44fd40417a0e568493a4e.zip | |
Parsing/Sema for OMPAlignedClause.
llvm-svn: 209816
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
| -rw-r--r-- | clang/lib/AST/StmtPrinter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp index 0804d4089bb..c9d09b74ea9 100644 --- a/clang/lib/AST/StmtPrinter.cpp +++ b/clang/lib/AST/StmtPrinter.cpp @@ -677,6 +677,18 @@ void OMPClausePrinter::VisitOMPLinearClause(OMPLinearClause *Node) { } } +void OMPClausePrinter::VisitOMPAlignedClause(OMPAlignedClause *Node) { + if (!Node->varlist_empty()) { + OS << "aligned"; + VisitOMPClauseList(Node, '('); + if (Node->getAlignment() != nullptr) { + OS << ": "; + Node->getAlignment()->printPretty(OS, nullptr, Policy, 0); + } + OS << ")"; + } +} + void OMPClausePrinter::VisitOMPCopyinClause(OMPCopyinClause *Node) { if (!Node->varlist_empty()) { OS << "copyin"; |

