[flang-commits] [flang] [flang] Add debug information for module variables. (PR #91582)
Abid Qadeer via flang-commits
flang-commits at lists.llvm.org
Wed May 15 04:01:28 PDT 2024
================
@@ -91,6 +169,10 @@ void AddDebugInfoPass::runOnOperation() {
llvm::dwarf::getLanguage("DW_LANG_Fortran95"), fileAttr, producer,
isOptimized, debugLevel);
+ module.walk([&](fir::GlobalOp globalOp) {
----------------
abidh wrote:
I have changed it to
`for (auto globalOp : module.getOps<fir::GlobalOp>())`
Please let me know if that was not what you had in mind.
https://github.com/llvm/llvm-project/pull/91582
More information about the flang-commits
mailing list