[flang-commits] [flang] [flang] Remove hardcoded bits from AddDebugInfo. (PR #89231)

via flang-commits flang-commits at lists.llvm.org
Mon Apr 22 07:31:57 PDT 2024


https://github.com/jeanPerier approved this pull request.

Thanks for explaining. I understand now that the pervious debug info was incorrect with regard to the build directory:

````
/home/haqadeer/build$ gfortran ../src/test.f90
              DW_AT_name	("test.f90")
              DW_AT_comp_dir	("/home/src")
````

Too bad there is no equivalent of std::filesystem::relative in llvm filesystem, this would have allowed to easily compute the inputFileName from the mlir location and current working directory without an extra pass option (there is not usages of std::filesystem in LLVM outside of libcxx and some tests, so probably best to not introduce it just for this).


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


More information about the flang-commits mailing list