-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[DebugInfo] Add DW_AT_artificial for compiler generated static member. #115851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DebugInfo] Add DW_AT_artificial for compiler generated static member. #115851
Conversation
Consider the case when the compiler generates a static member. Any consumer of the debug info generated for that case, would benefit if that member has the DW_AT_artificial flag.
@llvm/pr-subscribers-debuginfo Author: Carlos Alberto Enciso (CarlosAlbertoEnciso) ChangesConsider the case when the compiler generates a static member. Any consumer of the debug info generated for that case, would benefit if that member has the DW_AT_artificial flag. Full diff: https://github.com/llvm/llvm-project/pull/115851.diff 2 Files Affected:
|
Any particular compiler generated static variables you have in mind? There aren't any C++ ones that come to mind - though of course LLVM isn't just for Clang/C++, but would be nice to have some documented use case, if there is one, for this. If there isn't one we can document/mention, it's probably still OK to do though, it's simple enough/cheap enough that it's not a big deal. |
For classes with virtual functions, Clang generates a class member
|
We want to allow our (SCE) debugger to have a direct access to the whole vtable, thru a static data member
We need for the generated static data member to be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
@dwblaikie Thanks for your feedback. |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/9521 Here is the relevant piece of the build log for the reference
|
Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/9521 Created PR that fix the test case: #116327 |
Consider the case when the compiler generates a static member. Any consumer of the debug info generated for that case, would benefit if that member has the DW_AT_artificial flag.