diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2020-02-12 18:50:22 -0600 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2020-02-12 18:50:43 -0600 |
commit | 3aac953afa34885a72df96f2b703b65f85cbb149 (patch) | |
tree | 738a92dbc3952824eff64562816c1535aca0d7e8 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | d1b393d92c2d595ee5893c8e9ebc9da50d15f2a0 (diff) | |
download | llvm-3aac953afa34885a72df96f2b703b65f85cbb149.zip llvm-3aac953afa34885a72df96f2b703b65f85cbb149.tar.gz llvm-3aac953afa34885a72df96f2b703b65f85cbb149.tar.bz2 |
Revert "[OpenMP][IRBuilder] Perform finalization (incl. outlining) late"
This reverts commit 8a56d64d7620b3764f10f03f3a1e307fcdd72c2f.
Will be recommitted once the clang test problem is addressed.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 4798de0..b7506b5 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -32,7 +32,6 @@ #include "clang/Basic/TargetInfo.h" #include "clang/CodeGen/CGFunctionInfo.h" #include "clang/Frontend/FrontendDiagnostic.h" -#include "llvm/Frontend/OpenMP/OMPIRBuilder.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/Dominators.h" #include "llvm/IR/FPEnv.h" @@ -105,14 +104,6 @@ CodeGenFunction::~CodeGenFunction() { if (getLangOpts().OpenMP && CurFn) CGM.getOpenMPRuntime().functionFinished(*this); - - // If we have an OpenMPIRBuilder we want to finalize functions (incl. - // outlining etc) at some point. Doing it once the function codegen is done - // seems to be a reasonable spot. We do it here, as opposed to the deletion - // time of the CodeGenModule, because we have to ensure the IR has not yet - // been "emitted" to the outside, thus, modifications are still sensible. - if (llvm::OpenMPIRBuilder *OMPBuilder = CGM.getOpenMPIRBuilder()) - OMPBuilder->finalize(); } // Map the LangOption for rounding mode into |