[lld] r267523 - [ELF] Simplify. Pointed out by Rui Ueyama.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 22:51:38 PDT 2016


Author: davide
Date: Tue Apr 26 00:51:37 2016
New Revision: 267523

URL: http://llvm.org/viewvc/llvm-project?rev=267523&view=rev
Log:
[ELF] Simplify. Pointed out by Rui Ueyama.

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=267523&r1=267522&r2=267523&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Tue Apr 26 00:51:37 2016
@@ -352,8 +352,7 @@ void LinkerDriver::readConfigs(opt::Inpu
   Config->Fini = getString(Args, OPT_fini, "_fini");
   Config->Init = getString(Args, OPT_init, "_init");
   Config->OutputFile = getString(Args, OPT_o);
-  if (auto *Arg = Args.getLastArg(OPT_reproduce))
-    Config->Reproduce = Arg->getValue();
+  Config->Reproduce = getString(Args, OPT_reproduce);
   Config->SoName = getString(Args, OPT_soname);
   Config->Sysroot = getString(Args, OPT_sysroot);
 




More information about the llvm-commits mailing list