diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h index a91d187daa2b..bf791b968ad0 100644 --- a/lld/ELF/Config.h +++ b/lld/ELF/Config.h @@ -46,7 +46,6 @@ struct Configuration { bool NoUndefined; bool Shared; bool Static = false; - bool WholeArchive = false; bool ZNow = false; ELFKind ElfKind = ELFNoneKind; uint16_t EMachine = llvm::ELF::EM_NONE; diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index b4395e8b8166..8e12dee6f65e 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -20,6 +20,7 @@ using namespace llvm; using namespace llvm::ELF; +using namespace llvm::object; using namespace lld; using namespace lld::elf2; @@ -32,7 +33,7 @@ void lld::elf2::link(ArrayRef Args) { LinkerDriver D; Config = &C; Driver = &D; - Driver->link(Args.slice(1)); + Driver->main(Args.slice(1)); } static void setELFType(StringRef Emul) { @@ -102,28 +103,6 @@ static std::string searchLibrary(StringRef Path) { error(Twine("Unable to find library -l") + Path); } -template