From c2e76a9a6dcc09434d47ba9217fa02d997c2401d Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Thu, 8 Apr 2021 14:11:45 -0400 Subject: [PATCH] [lld-macho][nfc] Use varargs form of hasArg() --- lld/MachO/Driver.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lld/MachO/Driver.cpp b/lld/MachO/Driver.cpp index 8175afe..daa3105 100644 --- a/lld/MachO/Driver.cpp +++ b/lld/MachO/Driver.cpp @@ -1038,9 +1038,8 @@ bool macho::link(ArrayRef 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); -- 2.7.4