[PATCH] D140929: [BPF] Support for "btf_decl_tag" annotations for arguments of extern functions
Yonghong Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 3 23:27:17 PST 2023
yonghong-song added a comment.
Please separate the patch to clang and llvm part.
================
Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:4218
+ // DISubprogram's retainedNodes in the subsequent finalizeSubprogram call.
+ if (IsDeclForCallSite && CGM.getTarget().getTriple().isBPF()) {
+ if (auto *FD = dyn_cast<FunctionDecl>(D)) {
----------------
Looks like this is for bpf only? Can we extend it to non-bpf as well? Currently, I think most use case, if any, will be in vmlinux (e.g., for struct_ops callback, etc).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140929/new/
https://reviews.llvm.org/D140929
More information about the cfe-commits
mailing list