[lld] r332995 - Move code to improve readability. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue May 22 09:19:38 PDT 2018
Author: ruiu
Date: Tue May 22 09:19:38 2018
New Revision: 332995
URL: http://llvm.org/viewvc/llvm-project?rev=332995&view=rev
Log:
Move code to improve readability. NFC.
Modified:
lld/trunk/ELF/Driver.cpp
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=332995&r1=332994&r2=332995&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Tue May 22 09:19:38 2018
@@ -673,6 +673,7 @@ void LinkerDriver::readConfigs(opt::Inpu
errorHandler().Verbose = Args.hasArg(OPT_verbose);
errorHandler().FatalWarnings =
Args.hasFlag(OPT_fatal_warnings, OPT_no_fatal_warnings, false);
+ ThreadsEnabled = Args.hasFlag(OPT_threads, OPT_no_threads, true);
Config->AllowMultipleDefinition =
Args.hasFlag(OPT_allow_multiple_definition,
@@ -765,7 +766,6 @@ void LinkerDriver::readConfigs(opt::Inpu
getOldNewOptions(Args, OPT_plugin_opt_thinlto_object_suffix_replace_eq);
Config->ThinLTOPrefixReplace =
getOldNewOptions(Args, OPT_plugin_opt_thinlto_prefix_replace_eq);
- ThreadsEnabled = Args.hasFlag(OPT_threads, OPT_no_threads, true);
Config->Trace = Args.hasArg(OPT_trace);
Config->Undefined = args::getStrings(Args, OPT_undefined);
Config->UndefinedVersion =
More information about the llvm-commits
mailing list