summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtProfile.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-02-13 05:29:23 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-02-13 05:29:23 +0000
commitaadd52e5cc8776ed65c0850876a68a1f10a92f10 (patch)
tree6789802725add097bbba8e1e1ab597a4f697a863 /clang/lib/AST/StmtProfile.cpp
parent0e3b5e0b20698558be7a30b42f3d245bf6a4af54 (diff)
downloadbcm5719-llvm-aadd52e5cc8776ed65c0850876a68a1f10a92f10.tar.gz
bcm5719-llvm-aadd52e5cc8776ed65c0850876a68a1f10a92f10.zip
[OPENMP] 'if' clause support (no CodeGen support)
llvm-svn: 201297
Diffstat (limited to 'clang/lib/AST/StmtProfile.cpp')
-rw-r--r--clang/lib/AST/StmtProfile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtProfile.cpp b/clang/lib/AST/StmtProfile.cpp
index f1996e3882e..ae3b3600786 100644
--- a/clang/lib/AST/StmtProfile.cpp
+++ b/clang/lib/AST/StmtProfile.cpp
@@ -265,6 +265,11 @@ public:
#include "clang/Basic/OpenMPKinds.def"
};
+void OMPClauseProfiler::VisitOMPIfClause(const OMPIfClause *C) {
+ if (C->getCondition())
+ Profiler->VisitStmt(C->getCondition());
+}
+
void OMPClauseProfiler::VisitOMPDefaultClause(const OMPDefaultClause *C) { }
template<typename T>
OpenPOWER on IntegriCloud