[Mlir-commits] [llvm] [mlir] [DebugInfo][RemoveDIs] Remove debug-intrinsic printing cmdline options (PR #131855)

Jeremy Morse llvmlistbot at llvm.org
Fri Mar 28 09:11:28 PDT 2025


================
@@ -34,13 +33,7 @@ void registerToLLVMIRTranslation() {
         if (!llvmModule)
           return failure();
 
-        // When printing LLVM IR, we should convert the module to the debug info
-        // format that LLVM expects us to print.
-        // See https://llvm.org/docs/RemoveDIsDebugInfo.html
-        llvm::ScopedDbgInfoFormatSetter formatSetter(*llvmModule,
-                                                     WriteNewDbgInfoFormat);
-        if (WriteNewDbgInfoFormat)
-          llvmModule->removeDebugIntrinsicDeclarations();
+        llvmModule->removeDebugIntrinsicDeclarations();
----------------
jmorse wrote:

Switched to using `UseNewDbgInfoFormat` for the moment

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


More information about the Mlir-commits mailing list