From 9959db5fa9d4972b6f5510344d502ff4932b0c0e Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Tue, 6 May 2014 10:08:46 +0000 Subject: [OPENMP] Initial codegen for '#pragma omp parallel' llvm-svn: 208077 --- clang/lib/CodeGen/CodeGenFunction.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp') diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index e8f48af..f3ea8eb 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -15,6 +15,7 @@ #include "CGCUDARuntime.h" #include "CGCXXABI.h" #include "CGDebugInfo.h" +#include "CGOpenMPRuntime.h" #include "CodeGenModule.h" #include "CodeGenPGO.h" #include "TargetInfo.h" @@ -72,6 +73,10 @@ CodeGenFunction::~CodeGenFunction() { // something. if (FirstBlockInfo) destroyBlockInfos(FirstBlockInfo); + + if (getLangOpts().OpenMP) { + CGM.getOpenMPRuntime().FunctionFinished(*this); + } } -- cgit v1.1