[ELF] Symbol::extract : remove unneeded file->lazy check

This commit is contained in:
Fangrui Song
2025-01-24 09:34:48 -08:00
parent 5daecd4a3b
commit c025b96ef9

View File

@@ -254,10 +254,9 @@ void Symbol::parseSymbolVersion(Ctx &ctx) {
}
void Symbol::extract(Ctx &ctx) const {
if (file->lazy) {
file->lazy = false;
parseFile(ctx, file);
}
assert(file->lazy);
file->lazy = false;
parseFile(ctx, file);
}
uint8_t Symbol::computeBinding(Ctx &ctx) const {