Skip to content

Commit 1edf476

Browse files
aarch64: Inline aarch64_get_all_extension_candidates
gcc/ChangeLog: * common/config/aarch64/aarch64-common.cc (aarch64_get_all_extension_candidates): Inline into... (aarch64_print_hint_for_extensions): ...this.
1 parent ecb4565 commit 1edf476

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

gcc/common/config/aarch64/aarch64-common.cc

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -223,24 +223,17 @@ aarch64_print_hint_candidates (const char *str,
223223
XDELETEVEC (s);
224224
}
225225

226-
/* Append all architecture extension candidates to the CANDIDATES vector. */
227-
228-
void
229-
aarch64_get_all_extension_candidates (auto_vec<const char *> *candidates)
230-
{
231-
const struct aarch64_extension_info *opt;
232-
for (opt = all_extensions; opt->name != NULL; opt++)
233-
candidates->safe_push (opt->name);
234-
}
235-
236226
/* Print a hint with a suggestion for an extension name
237227
that most closely resembles what the user passed in STR. */
238228

239229
void
240230
aarch64_print_hint_for_extensions (const char *str)
241231
{
242232
auto_vec<const char *> candidates;
243-
aarch64_get_all_extension_candidates (&candidates);
233+
const struct aarch64_extension_info *opt;
234+
for (opt = all_extensions; opt->name != NULL; opt++)
235+
candidates.safe_push (opt->name);
236+
244237
aarch64_print_hint_candidates (str, candidates);
245238
}
246239

0 commit comments

Comments
 (0)