diff options
| author | Amy Huang <akhuang@google.com> | 2020-01-13 15:54:54 -0800 |
|---|---|---|
| committer | Amy Huang <akhuang@google.com> | 2020-01-13 15:59:03 -0800 |
| commit | 53539bb032d162e0147c0e9650a5d1c7ca77dae0 (patch) | |
| tree | 85b602a6fc5d07957698fd59f49f3036c4616f67 /clang/lib/CodeGen/CGStmtOpenMP.cpp | |
| parent | c7748404920b3674e79059cbbe73b6041a214444 (diff) | |
| download | bcm5719-llvm-53539bb032d162e0147c0e9650a5d1c7ca77dae0.tar.gz bcm5719-llvm-53539bb032d162e0147c0e9650a5d1c7ca77dae0.zip | |
[DebugInfo] Add another level to DebugInfoKind called Constructor
The option will limit debug info by only emitting complete class
type information when its constructor is emitted.
This patch changes comparisons with LimitedDebugInfo to use the new
level instead.
Differential Revision: https://reviews.llvm.org/D72427
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGStmtOpenMP.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGStmtOpenMP.cpp b/clang/lib/CodeGen/CGStmtOpenMP.cpp index f9406a95764..dc3899f0e4e 100644 --- a/clang/lib/CodeGen/CGStmtOpenMP.cpp +++ b/clang/lib/CodeGen/CGStmtOpenMP.cpp @@ -567,8 +567,7 @@ CodeGenFunction::GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S) { const CapturedDecl *CD = S.getCapturedDecl(); // Build the argument list. bool NeedWrapperFunction = - getDebugInfo() && - CGM.getCodeGenOpts().getDebugInfo() >= codegenoptions::LimitedDebugInfo; + getDebugInfo() && CGM.getCodeGenOpts().hasReducedDebugInfo(); FunctionArgList Args; llvm::MapVector<const Decl *, std::pair<const VarDecl *, Address>> LocalAddrs; llvm::DenseMap<const Decl *, std::pair<const Expr *, llvm::Value *>> VLASizes; |

