[flang-commits] [flang] flang][debug] Run AddDebugInfo before TargetRewrite. (PR #114418)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Mon Nov 4 06:05:27 PST 2024


================
@@ -264,10 +264,10 @@ void createDefaultFIRCodeGenPassPipeline(mlir::PassManager &pm,
   addNestedPassToAllTopLevelOperations(pm, fir::createAbstractResultOpt);
   fir::addCodeGenRewritePass(
       pm, (config.DebugInfo != llvm::codegenoptions::NoDebugInfo));
+  fir::createDebugPasses(pm, config.DebugInfo, config.OptLevel, inputFilename);
----------------
abidh wrote:

Thanks for catching this. I moved `ExternalNameConversion` early so that `linkageName` field in the debug is correct and added a test to check this.

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


More information about the flang-commits mailing list