[llvm] [BPF] Do not emit names for PTR, CONST, VOLATILE and RESTRICT BTF types (PR #163174)
Michal R via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 16 22:42:28 PDT 2025
================
@@ -93,7 +93,18 @@ void BTFTypeDerived::completeType(BTFDebug &BDebug) {
return;
IsCompleted = true;
- BTFType.NameOff = BDebug.addString(Name);
+ switch (Kind) {
+ case BTF::BTF_KIND_PTR:
+ case BTF::BTF_KIND_CONST:
+ case BTF::BTF_KIND_VOLATILE:
+ case BTF::BTF_KIND_RESTRICT:
+ // Do not emit names for these types.
----------------
vadorovsky wrote:
Good call, done.
https://github.com/llvm/llvm-project/pull/163174
More information about the llvm-commits
mailing list