ELF2: Remove unused global variable.
A global variable "Driver" is to re-entry to the driver to parse a
.drectve section. Because the need is COFF-specific, we don't need
this variable for ELF.
llvm-svn: 244680
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index a6fa7ed..f80d74f 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -23,14 +23,11 @@
namespace lld {
namespace elf2 {
Configuration *Config;
-LinkerDriver *Driver;
void link(ArrayRef<const char *> Args) {
auto C = make_unique<Configuration>();
Config = C.get();
- auto D = make_unique<LinkerDriver>();
- Driver = D.get();
- Driver->link(Args.slice(1));
+ LinkerDriver().link(Args.slice(1));
}
}