summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMitch Phillips <31459023+hctim@users.noreply.github.com>2022-05-16 19:07:22 -0700
committerMitch Phillips <31459023+hctim@users.noreply.github.com>2022-05-16 19:07:38 -0700
commited2c3218f5badf88cb7897fabf8faa01e8aa2044 (patch)
treeafac0c08c8c195b2a5c0542a6406e33278142b3c /clang/lib/CodeGen/CodeGenModule.cpp
parent3cde6d83f86c274e5608abfe852b95fd6668f9fd (diff)
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp5
1 files changed, 0 insertions, 5 deletions
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;