diff options
author | Abid Qadeer <haqadeer@amd.com> | 2024-05-22 10:59:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-22 10:59:29 +0100 |
commit | f156b9ce7aae520046c926458ed17d73ed33fc2a (patch) | |
tree | 009d5df59896523044bb9fc413d8f3c7c41b4b01 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 1f5cd3accd7e98abbf31d45b1ed59fbda0c91d30 (diff) | |
download | llvm-f156b9ce7aae520046c926458ed17d73ed33fc2a.zip llvm-f156b9ce7aae520046c926458ed17d73ed33fc2a.tar.gz llvm-f156b9ce7aae520046c926458ed17d73ed33fc2a.tar.bz2 |
[flang] Add debug information for module variables. (#91582)
This PR add debug info for module variables. The module variables are
added as global variables but their scope is set to module instead of
compile unit. The scope of function declared inside a module is also set
accordingly.
After this patch, a module variable could be evaluated in the GDB as `p
helper::gli` where helper is name of the module and gli is the name of
the variable. A future patch will add the import module functionality
which will remove the need to prefix the name with helper::.
The line number where is module is declared is a best guess at the
moment as this information is not part of the GlobalOp.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions