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
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));
}
}