[lld] r289081 - Use `make` to simplify. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 09:48:52 PST 2016
Author: ruiu
Date: Thu Dec 8 11:48:52 2016
New Revision: 289081
URL: http://llvm.org/viewvc/llvm-project?rev=289081&view=rev
Log:
Use `make` to simplify. 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=289081&r1=289080&r2=289081&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Thu Dec 8 11:48:52 2016
@@ -48,12 +48,9 @@ bool elf::link(ArrayRef<const char *> Ar
ErrorOS = &Error;
Argv0 = Args[0];
- Configuration C;
- LinkerDriver D;
- ScriptConfiguration SC;
- Config = &C;
- Driver = &D;
- ScriptConfig = &SC;
+ Config = make<Configuration>();
+ Driver = make<LinkerDriver>();
+ ScriptConfig = make<ScriptConfiguration>();
Driver->main(Args, CanExitEarly);
freeArena();
More information about the llvm-commits
mailing list