diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 6c0fd3139e877..dc2d4ada450d0 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -590,11 +590,6 @@ void LinkerDriver::linkerMain(ArrayRef argsArr) { if (errorCount()) return; - // The Target instance handles target-specific stuff, such as applying - // relocations or writing a PLT section. It also contains target-dependent - // values such as a default image base address. - target = getTarget(); - link(args); }