Skip to content

Commit 322e129

Browse files
committed
[lld][ELF] Simplify handleLibcall. NFC
I noticed this while working on llvm#78658
1 parent 8649328 commit 322e129

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lld/ELF/Driver.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -2081,13 +2081,7 @@ static void handleUndefinedGlob(StringRef arg) {
20812081

20822082
static void handleLibcall(StringRef name) {
20832083
Symbol *sym = symtab.find(name);
2084-
if (!sym || !sym->isLazy())
2085-
return;
2086-
2087-
MemoryBufferRef mb;
2088-
mb = cast<LazyObject>(sym)->file->mb;
2089-
2090-
if (isBitcode(mb))
2084+
if (sym && sym->isLazy() && isa<BitcodeFile>(sym->file))
20912085
sym->extract();
20922086
}
20932087

0 commit comments

Comments
 (0)