[PATCH] D106618: [Clang][LLVM] generate btf_tag annotations for DISubprogram types
Yonghong Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 25 18:24:20 PDT 2021
yonghong-song added a comment.
In D106618#2965546 <https://reviews.llvm.org/D106618#2965546>, @dblaikie wrote:
> The clang side might benefit from a test with a function declaration, a call to that function, but no definition of it - with optimizations enabled, clang should emit the DISubprogram for that function for the purpose of call site DWARF, I think? (or maybe that behavior got rolled back for now? In which case the nearest thing I can think of/the only other place where we produce DWARF for a declaration would be for a member function declaration in a type DIE - are btf attributes supported there (or are they only supported in C, in which case there's no such thing as a member function)?
This is a good point. I missed the extern function invocation may generate function debuginfo. I will fix my code and add a test for that.
For member function, btf_tag is C only, so we can ignore member function for now.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106618/new/
https://reviews.llvm.org/D106618
More information about the cfe-commits
mailing list