[lld] c2e76a9 - [lld-macho][nfc] Use varargs form of hasArg()
Jez Ng via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 8 11:13:24 PDT 2021
Author: Jez Ng
Date: 2021-04-08T14:12:55-04:00
New Revision: c2e76a9a6dcc09434d47ba9217fa02d997c2401d
URL: https://github.com/llvm/llvm-project/commit/c2e76a9a6dcc09434d47ba9217fa02d997c2401d
DIFF: https://github.com/llvm/llvm-project/commit/c2e76a9a6dcc09434d47ba9217fa02d997c2401d.diff
LOG: [lld-macho][nfc] Use varargs form of hasArg()
Added:
Modified:
lld/MachO/Driver.cpp
Removed:
################################################################################
diff --git a/lld/MachO/Driver.cpp b/lld/MachO/Driver.cpp
index 8175afe1569b..daa3105b736b 100644
--- a/lld/MachO/Driver.cpp
+++ b/lld/MachO/Driver.cpp
@@ -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);
More information about the llvm-commits
mailing list