diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-03-08 20:48:54 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-03-08 20:48:54 +0000 |
commit | 6fed035e2464957903d3656ce105fa906fb2a2ac (patch) | |
tree | 3bd8aa9a98a1ca17c1bf48db82624db10061de9f /lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | |
parent | 39e921f3d8272ebf07bbb8f386d0772cf49a5621 (diff) |
[OPENMP]Remove debug service variable.
Removed not required service variable for the debug info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355729 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp')
-rw-r--r-- | lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp index 5eaa0f02ad..90799ed99f 100644 --- a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp +++ b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp @@ -4958,20 +4958,6 @@ static std::pair<unsigned, unsigned> getSMsBlocksPerSM(CodeGenModule &CGM) { } void CGOpenMPRuntimeNVPTX::clear() { - if (CGDebugInfo *DI = CGM.getModuleDebugInfo()) - if (CGM.getCodeGenOpts().getDebugInfo() >= - codegenoptions::LimitedDebugInfo) { - ASTContext &C = CGM.getContext(); - auto *VD = VarDecl::Create( - C, C.getTranslationUnitDecl(), SourceLocation(), SourceLocation(), - &C.Idents.get("_$_"), C.IntTy, /*TInfo=*/nullptr, SC_Static); - auto *Var = cast<llvm::GlobalVariable>( - CGM.CreateRuntimeVariable(CGM.IntTy, "_$_")); - Var->setInitializer(llvm::ConstantInt::getNullValue(CGM.IntTy)); - Var->setLinkage(llvm::GlobalVariable::CommonLinkage); - CGM.addCompilerUsedGlobal(Var); - DI->EmitGlobalVariable(Var, VD); - } if (!GlobalizedRecords.empty()) { ASTContext &C = CGM.getContext(); llvm::SmallVector<const GlobalPtrSizeRecsTy *, 4> GlobalRecs; |