diff options
| author | Jeremy Morse <jeremy.morse@sony.com> | 2025-06-11 11:23:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-11 11:23:24 +0100 |
| commit | 354cfba5209eed5ea6bafb6a3e69e65148c4e25d (patch) | |
| tree | 77547da4e90fc24d5d3252be69add48038648be7 /llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp | |
| parent | ddef9ce8dad611c2fef172f3b08c5c98235a3b41 (diff) | |
[DebugInfo][RemoveDIs] Remove scoped-dbg-format-setter (#143450)
This was a utility for flipping between intrinsic and debug record mode
-- we don't need it any more. The "IsNewDbgInfoFormat" should be true
everywhere.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp index fb393d33df3b..e48f735ded83 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp @@ -19,9 +19,7 @@ using namespace llvm; PreservedAnalyses BitcodeWriterPass::run(Module &M, ModuleAnalysisManager &AM) { - ScopedDbgInfoFormatSetter FormatSetter(M, M.IsNewDbgInfoFormat); - if (M.IsNewDbgInfoFormat) - M.removeDebugIntrinsicDeclarations(); + M.removeDebugIntrinsicDeclarations(); const ModuleSummaryIndex *Index = EmitSummaryIndex ? &(AM.getResult<ModuleSummaryIndexAnalysis>(M)) @@ -51,9 +49,7 @@ namespace { StringRef getPassName() const override { return "Bitcode Writer"; } bool runOnModule(Module &M) override { - ScopedDbgInfoFormatSetter FormatSetter(M, M.IsNewDbgInfoFormat); - if (M.IsNewDbgInfoFormat) - M.removeDebugIntrinsicDeclarations(); + M.removeDebugIntrinsicDeclarations(); WriteBitcodeToFile(M, OS, ShouldPreserveUseListOrder, /*Index=*/nullptr, /*EmitModuleHash=*/false); |
