[PATCH] D69759: [BPF] Add preserve_access_index attribute for record definition
Yonghong Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 8 10:35:46 PST 2019
yonghong-song added a comment.
But it does not work for inner structs any more.
-bash-4.4$ cat t.c
#define __reloc__ __attribute__((preserve_access_index))
struct __reloc__ p;
struct p {
int a;
struct {
int b;
};
};
int test(struct p *arg) {
return arg->b;
}
-bash-4.4$
In only generates reloc for struct p's immediate members, but not inner structures.
The forward declaration gives empty record with attribute set, but this set does not
extend to inner record.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69759/new/
https://reviews.llvm.org/D69759
More information about the cfe-commits
mailing list