From ed2c3218f5badf88cb7897fabf8faa01e8aa2044 Mon Sep 17 00:00:00 2001 From: Mitch Phillips <31459023+hctim@users.noreply.github.com> Date: Mon, 16 May 2022 19:07:22 -0700 Subject: Revert "[dwarf] Emit a DIGlobalVariable for constant strings." This reverts commit 4680982b36a84770a1600fc438be8ec090671724. Broke a fuchsia windows bot. More details in the review: https://reviews.llvm.org/D123534 --- clang/lib/CodeGen/CodeGenModule.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 703cf4edf5f5..f8bf210dc0e2 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -5670,11 +5670,6 @@ CodeGenModule::GetAddrOfConstantStringFromLiteral(const StringLiteral *S, } auto GV = GenerateStringLiteral(C, LT, *this, GlobalVariableName, Alignment); - - CGDebugInfo *DI = getModuleDebugInfo(); - if (DI && getCodeGenOpts().hasReducedDebugInfo()) - DI->AddStringLiteralDebugInfo(GV, S); - if (Entry) *Entry = GV; -- cgit v1.2.3