[llvm] DWARF: Emit `DW_AT_artificial` on artificial globals (PR #93118)
Paul T Robinson via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 11:26:22 PDT 2024
pogo59 wrote:
Seems reasonable for the type of the vtable to be artificial, actually. Variables of that type would implicitly also be artificial. I'm having a hard time coming up with a reason why an artificial type would have non-artificial instances.
DIFlags is getting pretty full (again) and I'd be reluctant to add Artificial to it just to support this case.
Re. the @Michael137 example, I'm surprised those are marked artificial given that they are named and declared in the source. I'd agree it's a bug that the global and local cases are different, but I'd go in the direction of taking the flag off the local variables.
https://github.com/llvm/llvm-project/pull/93118
More information about the llvm-commits
mailing list