[all-commits] [llvm/llvm-project] 95b412: [flang][debug] Don't generate debug for compiler-g...

Abid Qadeer via All-commits all-commits at lists.llvm.org
Mon Oct 21 03:27:55 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95b4128c6a87e9b894aa75524e63be147cca790b
      https://github.com/llvm/llvm-project/commit/95b4128c6a87e9b894aa75524e63be147cca790b
  Author: Abid Qadeer <haqadeer at amd.com>
  Date:   2024-10-21 (Mon, 21 Oct 2024)

  Changed paths:
    M flang/include/flang/Optimizer/Support/InternalNames.h
    M flang/lib/Optimizer/Support/InternalNames.cpp
    M flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
    A flang/test/Integration/debug-extra-global-2.f90
    A flang/test/Integration/debug-extra-global.f90
    A flang/test/Transforms/debug-extra-global.fir

  Log Message:
  -----------
  [flang][debug] Don't generate debug for compiler-generated variables (#112423)

Flang generates many globals to handle derived types. There was a check
in debug info to filter them based on the information that their names
start with a period. This changed since PR#104859 where 'X' is being
used instead of '.'.

This PR fixes this issue by also adding 'X' in that list. As user
variables gets lower cased by the NameUniquer, there is no risk that
those will be filtered out. I added a test for that to be sure.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list