aboutsummaryrefslogtreecommitdiff
path: root/depcomp
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2024-07-09 15:30:39 +0100
committerNick Alcock <nick.alcock@oracle.com>2024-07-31 21:02:04 +0100
commit68720e03f58f4c4565f5d8724742acc5951210fa (patch)
treea793fada4066c12e8bbe51375ec1b849ae1e198c /depcomp
parent95861bb39663bd69e8dd9cbf0fe82b03b8634d94 (diff)
downloadbinutils-68720e03f58f4c4565f5d8724742acc5951210fa.zip
binutils-68720e03f58f4c4565f5d8724742acc5951210fa.tar.gz
binutils-68720e03f58f4c4565f5d8724742acc5951210fa.tar.bz2
libctf, dedup: drop unnecessary arg from ctf_dedup()
The PARENTS arg is carefully passed down through all the layers of hash functions and then never used for anything. (In the distant past it was used for cycle detection, but the algorithm eventually committed doesn't need to do cycle detection...) The PARENTS arg is still used by ctf_dedup_emit(), but even there we can loosen the requirements and state that you can just leave entries corresponding to dicts with no parents at zero (which will be useful in an upcoming commit). libctf/ * ctf-dedup.c (ctf_dedup_hash_type): Drop PARENTS arg. (ctf_dedup_rhash_type): Likewise. (ctf_dedup): Likewise. (ctf_dedup_emit_struct_members): Mention what you can do to PARENTS entries for parent dicts. * ctf-impl.h (ctf_dedup): Adjust accordingly. * ctf-link.c (ctf_link_deduplicating_per_cu): Likewise. (ctf_link_deduplicating): Likewise.
Diffstat (limited to 'depcomp')
0 files changed, 0 insertions, 0 deletions