[llvm] [BPF] Support wrapping BPF map structs into nested, single field structs (PR #144097)
Tamir Duberstein via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 13 09:28:44 PDT 2025
================
@@ -976,11 +976,21 @@ void BTFDebug::visitMapDefType(const DIType *Ty, uint32_t &TypeId) {
if (Tag != dwarf::DW_TAG_structure_type || CTy->isForwardDecl())
return;
- // Visit all struct members to ensure pointee type is visited
+ // Visit all struct members to ensure their types are visited.
const DINodeArray Elements = CTy->getElements();
+ // In Aya/Rust, BPF maps are wrapped into nested types. Such wrapper types
----------------
tamird wrote:
This is a bit too specific, no? I'd try to avoid mentioning this so specifically.
https://github.com/llvm/llvm-project/pull/144097
More information about the llvm-commits
mailing list