[lld/mac] Add missing `_eq` suffix on two (internal) option names

No behavior change.
This commit is contained in:
Nico Weber 2022-08-12 08:06:50 -04:00
parent 921b13f263
commit 39a093471a
2 changed files with 5 additions and 5 deletions

View File

@ -224,10 +224,10 @@ static llvm::CachePruningPolicy getLTOCachePolicy(InputArgList &args) {
val.toVector(ltoPolicy);
};
for (const Arg *arg :
args.filtered(OPT_thinlto_cache_policy, OPT_prune_interval_lto,
args.filtered(OPT_thinlto_cache_policy_eq, OPT_prune_interval_lto,
OPT_prune_after_lto, OPT_max_relative_cache_size_lto)) {
switch (arg->getOption().getID()) {
case OPT_thinlto_cache_policy:
case OPT_thinlto_cache_policy_eq:
add(arg->getValue());
break;
case OPT_prune_interval_lto:
@ -1441,7 +1441,7 @@ bool macho::link(ArrayRef<const char *> argsArr, llvm::raw_ostream &stdoutOS,
config->ignoreOptimizationHints = args.hasArg(OPT_ignore_optimization_hints);
config->callGraphProfileSort = args.hasFlag(
OPT_call_graph_profile_sort, OPT_no_call_graph_profile_sort, true);
config->printSymbolOrder = args.getLastArgValue(OPT_print_symbol_order);
config->printSymbolOrder = args.getLastArgValue(OPT_print_symbol_order_eq);
config->forceExactCpuSubtypeMatch =
getenv("LD_DYLIB_CPU_SUBTYPES_MUST_MATCH");
config->objcStubsMode = getObjCStubsMode(args);

View File

@ -68,7 +68,7 @@ def lto_O: Joined<["--"], "lto-O">,
HelpText<"Set optimization level for LTO (default: 2)">,
MetaVarName<"<opt-level>">,
Group<grp_lld>;
def thinlto_cache_policy: Joined<["--"], "thinlto-cache-policy=">,
def thinlto_cache_policy_eq: Joined<["--"], "thinlto-cache-policy=">,
HelpText<"Pruning policy for the ThinLTO cache">,
Group<grp_lld>;
def O : JoinedOrSeparate<["-"], "O">,
@ -89,7 +89,7 @@ def call_graph_profile_sort: Flag<["--"], "call-graph-profile-sort">,
def no_call_graph_profile_sort : Flag<["--"], "no-call-graph-profile-sort">,
HelpText<"Do not reorder sections with call graph profile">,
Group<grp_lld>;
def print_symbol_order: Joined<["--"], "print-symbol-order=">,
def print_symbol_order_eq: Joined<["--"], "print-symbol-order=">,
HelpText<"Print a symbol order specified by --call-graph-profile-sort into the specified file">,
Group<grp_lld>;