Skip to content

Commit

Permalink
[lld][ELF] Simplify handleLibcall. NFC
Browse files Browse the repository at this point in the history
I noticed this while working on llvm#78658
  • Loading branch information
sbc100 committed Jan 19, 2024
1 parent 8649328 commit 322e129
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lld/ELF/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2081,13 +2081,7 @@ static void handleUndefinedGlob(StringRef arg) {

static void handleLibcall(StringRef name) {
Symbol *sym = symtab.find(name);
if (!sym || !sym->isLazy())
return;

MemoryBufferRef mb;
mb = cast<LazyObject>(sym)->file->mb;

if (isBitcode(mb))
if (sym && sym->isLazy() && isa<BitcodeFile>(sym->file))
sym->extract();
}

Expand Down

0 comments on commit 322e129

Please sign in to comment.