[lld][ELF] Simplify handleLibcall. NFC (#78659)

I noticed this while working on #78658

GitOrigin-RevId: f5e58a038033c8736fed91a7e89a5faad462abcc
diff --git a/ELF/Driver.cpp b/ELF/Driver.cpp
index 5ccc656..07f4263 100644
--- a/ELF/Driver.cpp
+++ b/ELF/Driver.cpp
@@ -2081,13 +2081,7 @@
 
 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();
 }