From f98b00c33e83cb507c21107e8c56961a4b043509 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Wed, 23 Jul 2014 02:27:21 +0000 Subject: [OPENMP] Initial parsing and sema analysis for 'read' clause in 'atomic' directive. llvm-svn: 213717 --- clang/lib/AST/StmtPrinter.cpp | 2 ++ clang/lib/AST/StmtProfile.cpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'clang/lib/AST') diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp index 959c45acc6a..2a704c3a849 100644 --- a/clang/lib/AST/StmtPrinter.cpp +++ b/clang/lib/AST/StmtPrinter.cpp @@ -665,6 +665,8 @@ void OMPClausePrinter::VisitOMPMergeableClause(OMPMergeableClause *) { OS << "mergeable"; } +void OMPClausePrinter::VisitOMPReadClause(OMPReadClause *) { OS << "read"; } + template void OMPClausePrinter::VisitOMPClauseList(T *Node, char StartSym) { for (typename T::varlist_iterator I = Node->varlist_begin(), diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp index c2bfa46531d..4cf7077ee84 100644 --- a/clang/lib/AST/StmtProfile.cpp +++ b/clang/lib/AST/StmtProfile.cpp @@ -310,6 +310,8 @@ void OMPClauseProfiler::VisitOMPUntiedClause(const OMPUntiedClause *) {} void OMPClauseProfiler::VisitOMPMergeableClause(const OMPMergeableClause *) {} +void OMPClauseProfiler::VisitOMPReadClause(const OMPReadClause *) {} + template void OMPClauseProfiler::VisitOMPClauseList(T *Node) { for (auto *I : Node->varlists()) -- cgit v1.2.3