summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-03-08 20:48:54 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-03-08 20:48:54 +0000
commit6fed035e2464957903d3656ce105fa906fb2a2ac (patch)
tree3bd8aa9a98a1ca17c1bf48db82624db10061de9f /lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
parent39e921f3d8272ebf07bbb8f386d0772cf49a5621 (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.cpp14
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;