Skip to content

Commit fd70309

Browse files
authored
[LLD][COFF] Delete useless code
1 parent a7247f4 commit fd70309

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lld/COFF/Driver.cpp

+1-11
Original file line numberDiff line numberDiff line change
@@ -2197,17 +2197,7 @@ void LinkerDriver::linkerMain(ArrayRef<const char *> argsArr) {
21972197
if (std::optional<StringRef> path = findLibIfNew("Psapi.lib"))
21982198
enqueuePath(*path, false, false);
21992199
}
2200-
2201-
// Check if any ObjFile instance has kernel enabled
2202-
if (!config->driver) {
2203-
for (ObjFile *file : ctx.objFileInstances) {
2204-
if (file->doesKernelDriver()) {
2205-
config->driver = true;
2206-
break;
2207-
}
2208-
}
2209-
}
2210-
2200+
22112201
// Handle /RELEASE
22122202
if (args.hasArg(OPT_release))
22132203
config->writeCheckSum = true;

0 commit comments

Comments
 (0)