[llvm] [DebugInfo][RemoveDIs] Rip out the UseNewDbgInfoFormat flag (PR #143207)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 9 02:50:33 PDT 2025


================
@@ -42,12 +40,10 @@ class PrintModulePassWrapper : public ModulePass {
         ShouldPreserveUseListOrder(ShouldPreserveUseListOrder) {}
 
   bool runOnModule(Module &M) override {
-    ScopedDbgInfoFormatSetter FormatSetter(M, UseNewDbgInfoFormat);
+    ScopedDbgInfoFormatSetter FormatSetter(M, true);
----------------
OCHyams wrote:

Possibly we should just remove the `ScopedDbgInfoFormatSetter` if everything's already going to have been auto-upgraded (or in the right format already)? OTOH, leaving it behind for another round of clean up will make it more likely we remember to clean up the `TODO` just below. So nothing to do here really, just checking our thoughts align.

https://github.com/llvm/llvm-project/pull/143207


More information about the llvm-commits mailing list