aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorAbid Qadeer <haqadeer@amd.com>2024-05-22 10:59:29 +0100
committerGitHub <noreply@github.com>2024-05-22 10:59:29 +0100
commitf156b9ce7aae520046c926458ed17d73ed33fc2a (patch)
tree009d5df59896523044bb9fc413d8f3c7c41b4b01 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent1f5cd3accd7e98abbf31d45b1ed59fbda0c91d30 (diff)
downloadllvm-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