diff options
Diffstat (limited to 'lld/COFF/SymbolTable.cpp')
-rw-r--r-- | lld/COFF/SymbolTable.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp index b010c4cc9479..112ffb36e3e5 100644 --- a/lld/COFF/SymbolTable.cpp +++ b/lld/COFF/SymbolTable.cpp @@ -184,14 +184,6 @@ std::error_code SymbolTable::resolveLazy(StringRef Name) { // Windows specific -- Link default entry point name. ErrorOr<StringRef> SymbolTable::findDefaultEntry() { - // If it's DLL, the rule is easy. - if (Config->DLL) { - StringRef Sym = "_DllMainCRTStartup"; - if (auto EC = resolve(new (Alloc) Undefined(Sym))) - return EC; - return Sym; - } - // User-defined main functions and their corresponding entry points. static const char *Entries[][2] = { {"main", "mainCRTStartup"}, |