[lld] [lld][ELF][MachO] rename to bp-* options for SectionOrderer (PR #118594)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 22:11:00 PST 2024


================
@@ -1838,34 +1838,44 @@ bool link(ArrayRef<const char *> argsArr, llvm::raw_ostream &stdoutOS,
       if (const Arg *arg = args.getLastArgNoClaim(OPT_call_graph_profile_sort))
         error(firstArgStr + " is incompatible with " + arg->getSpelling());
   };
-  if (const Arg *arg = args.getLastArg(OPT_irpgo_profile_sort)) {
-    config->irpgoProfileSortProfilePath = arg->getValue();
+  if (args.hasArg(OPT_irpgo_profile_sort) ||
+      args.hasArg(OPT_irpgo_profile_sort_eq))
+    error("--irpgo-profile-sort is deprecated. Please use "
+          "--bp-startup-sort=function");
----------------
Colibrow wrote:

@ellishg Because the lld testcase add the `-fatal_warnings` so if I change to the `log()`. Is it OK?

https://github.com/llvm/llvm-project/pull/118594


More information about the llvm-commits mailing list