diff options
Diffstat (limited to 'lld/COFF/Driver.cpp')
-rw-r--r-- | lld/COFF/Driver.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index a59cc06..3676b88 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -2104,18 +2104,18 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) { config->dtltoDistributor = args.getLastArgValue(OPT_thinlto_distributor); // Handle /thinlto-distributor-arg:<arg> - for (auto *arg : args.filtered(OPT_thinlto_distributor_arg)) - config->dtltoDistributorArgs.push_back(arg->getValue()); + config->dtltoDistributorArgs = + args::getStrings(args, OPT_thinlto_distributor_arg); // Handle /thinlto-remote-compiler:<path> - config->dtltoCompiler = args.getLastArgValue(OPT_thinlto_compiler); + config->dtltoCompiler = args.getLastArgValue(OPT_thinlto_remote_compiler); if (!config->dtltoDistributor.empty() && config->dtltoCompiler.empty()) Err(ctx) << "A value must be specified for /thinlto-remote-compiler if " "/thinlto-distributor is specified."; // Handle /thinlto-remote-compiler-arg:<arg> - for (auto *arg : args.filtered(OPT_thinlto_compiler_arg)) - config->dtltoCompilerArgs.push_back(arg->getValue()); + config->dtltoCompilerArgs = + args::getStrings(args, OPT_thinlto_remote_compiler_arg); // Handle /dwodir config->dwoDir = args.getLastArgValue(OPT_dwodir); |