]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Inline aarch64_get_all_extension_candidates
authorAndrew Carlotti <andrew.carlotti@arm.com>
Thu, 23 Jan 2025 17:24:17 +0000 (17:24 +0000)
committerAndrew Carlotti <andrew.carlotti@arm.com>
Fri, 24 Jan 2025 19:01:06 +0000 (19:01 +0000)
gcc/ChangeLog:

* common/config/aarch64/aarch64-common.cc
(aarch64_get_all_extension_candidates): Inline into...
(aarch64_print_hint_for_extensions): ...this.

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

index c3ea54ca3f771692d05a9a0e177e909f32fb4ffb..9923437761c981ecf80ee6954df44264719f9908 100644 (file)
@@ -223,16 +223,6 @@ aarch64_print_hint_candidates (const char *str,
   XDELETEVEC (s);
 }
 
-/* Append all architecture extension candidates to the CANDIDATES vector.  */
-
-void
-aarch64_get_all_extension_candidates (auto_vec<const char *> *candidates)
-{
-  const struct aarch64_extension_info *opt;
-  for (opt = all_extensions; opt->name != NULL; opt++)
-    candidates->safe_push (opt->name);
-}
-
 /* Print a hint with a suggestion for an extension name
    that most closely resembles what the user passed in STR.  */
 
@@ -240,7 +230,10 @@ void
 aarch64_print_hint_for_extensions (const char *str)
 {
   auto_vec<const char *> candidates;
-  aarch64_get_all_extension_candidates (&candidates);
+  const struct aarch64_extension_info *opt;
+  for (opt = all_extensions; opt->name != NULL; opt++)
+    candidates.safe_push (opt->name);
+
   aarch64_print_hint_candidates (str, candidates);
 }