projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbf7dfe
)
Use `make` to simplify. NFC.
author
Rui Ueyama
<ruiu@google.com>
Thu, 8 Dec 2016 17:48:52 +0000
(17:48 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Thu, 8 Dec 2016 17:48:52 +0000
(17:48 +0000)
llvm-svn: 289081
lld/ELF/Driver.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Driver.cpp
b/lld/ELF/Driver.cpp
index
832aa72
..
0bfc093
100644
(file)
--- a/
lld/ELF/Driver.cpp
+++ b/
lld/ELF/Driver.cpp
@@
-48,12
+48,9
@@
bool elf::link(ArrayRef<const char *> Args, bool CanExitEarly,
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();