* [binutils-gdb/binutils-2_43-branch] libctf: dedup: tiny tweaks
@ 2024-08-01 14:42 Nick Alcock
0 siblings, 0 replies; only message in thread
From: Nick Alcock @ 2024-08-01 14:42 UTC (permalink / raw)
To: binutils-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eee0da087b0915479f3fc8db8c5e656ca50f1ad0
commit eee0da087b0915479f3fc8db8c5e656ca50f1ad0
Author: Nick Alcock <nick.alcock@oracle.com>
Date: Mon Jul 15 20:00:59 2024 +0100
libctf: dedup: tiny tweaks
Drop an unnecessary variable, and fix a buggy comment.
No effect on generated code.
libctf/
* ctf-dedup.c (ctf_dedup_detect_name_ambiguity): Drop unnecessary
variable.
(ctf_dedup_rwalk_output_mapping): Fix comment.
Diff:
---
libctf/ctf-dedup.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/libctf/ctf-dedup.c b/libctf/ctf-dedup.c
index 8bfd839524e..4243bde16f7 100644
--- a/libctf/ctf-dedup.c
+++ b/libctf/ctf-dedup.c
@@ -1470,9 +1470,8 @@ ctf_dedup_detect_name_ambiguity (ctf_dict_t *fp, ctf_dict_t **inputs)
if (decorated[0] != '\0' && decorated[1] == ' ')
{
ctf_dedup_type_counter_t counters = { fp, inputs, 0 };
- ctf_dynhash_t *counts = (ctf_dynhash_t *) v;
- ctf_dynhash_iter_find (counts, ctf_dedup_count_types, &counters);
+ ctf_dynhash_iter_find (name_counts, ctf_dedup_count_types, &counters);
/* Check for assertion failure and pass it up. */
if (ctf_errno (fp) == ECTF_INTERNAL)
@@ -1482,7 +1481,7 @@ ctf_dedup_detect_name_ambiguity (ctf_dict_t *fp, ctf_dict_t **inputs)
{
const void *hval_;
- while ((err = ctf_dynhash_cnext (counts, &j, &hval_, NULL)) == 0)
+ while ((err = ctf_dynhash_cnext (name_counts, &j, &hval_, NULL)) == 0)
{
const char *hval = (const char *) hval_;
ctf_dynset_t *type_ids;
@@ -2265,7 +2264,7 @@ ctf_dedup_rwalk_output_mapping (ctf_dict_t *output, ctf_dict_t **inputs,
}
/* If this type is marked conflicted, traverse members and call
- ctf_dedup_rwalk_output_mapping_once on all the unique ones: otherwise, just
+ ctf_dedup_rwalk_one_output_mapping on all the unique ones: otherwise, just
pick a random one and use it. */
if (!ctf_dynset_exists (d->cd_conflicting_types, hval, NULL))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-08-01 14:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-01 14:42 [binutils-gdb/binutils-2_43-branch] libctf: dedup: tiny tweaks Nick Alcock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).