Skip to content

Commit

Permalink
[LLD][COFF] Delete useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 authored Nov 9, 2023
1 parent a7247f4 commit fd70309
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lld/COFF/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2197,17 +2197,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
if (std::optional<StringRef> path = findLibIfNew("Psapi.lib"))
enqueuePath(*path, false, false);
}

// Check if any ObjFile instance has kernel enabled
if (!config->driver) {
for (ObjFile *file : ctx.objFileInstances) {
if (file->doesKernelDriver()) {
config->driver = true;
break;
}
}
}


// Handle /RELEASE
if (args.hasArg(OPT_release))
config->writeCheckSum = true;
Expand Down

0 comments on commit fd70309

Please sign in to comment.