[flang-commits] [flang] [mlir] [MLIR][Flang][DebugInfo] Set debug info format in MLIR->IR translation (PR #95098)

Jeremy Morse via flang-commits flang-commits at lists.llvm.org
Tue Jun 11 04:48:41 PDT 2024


================
@@ -1271,6 +1274,10 @@ void CodeGenAction::executeAction() {
   runOptimizationPipeline(ci.isOutputStreamNull() ? *os : ci.getOutputStream());
 
   if (action == BackendActionTy::Backend_EmitLL) {
+    llvm::ScopedDbgInfoFormatSetter FormatSetter(*llvmModule,
+                                                 WriteNewDbgInfoFormat);
+    if (WriteNewDbgInfoFormat)
+      llvmModule->removeDebugIntrinsicDeclarations();
----------------
jmorse wrote:

IMO you want to put a comment here briefly indicating the purpose, and when it can be removed (this is all transitory, right?)

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


More information about the flang-commits mailing list