[lld-macho][nfc] Use varargs form of hasArg()

This commit is contained in:
Jez Ng 2021-04-08 14:11:45 -04:00
parent c23b92acd0
commit c2e76a9a6d
1 changed files with 2 additions and 3 deletions

View File

@ -1038,9 +1038,8 @@ bool macho::link(ArrayRef<const char *> argsArr, bool canExitEarly,
config->progName = argsArr[0];
config->timeTraceEnabled = args.hasArg(OPT_time_trace) ||
args.hasArg(OPT_time_trace_granularity_eq) ||
args.hasArg(OPT_time_trace_file_eq);
config->timeTraceEnabled = args.hasArg(
OPT_time_trace, OPT_time_trace_granularity_eq, OPT_time_trace_file_eq);
config->timeTraceGranularity =
args::getInteger(args, OPT_time_trace_granularity_eq, 500);