mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 13:50:11 +00:00
[lld][ELF] Simplify handleLibcall. NFC (#78659)
I noticed this while working on #78658
This commit is contained in:
parent
2c0d20668a
commit
f5e58a0380
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user