1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[NFC][llvm-nm] Fix unused variable warning

This commit is contained in:
Yang Fan 2021-01-29 10:27:43 +08:00
parent bc3428f564
commit 39bdc30ed4

View File

@ -1147,7 +1147,7 @@ static char getNMSectionTagAndName(SymbolicFile &Obj, basic_symbol_iterator I,
return 'U';
return isObject(Obj, I) ? 'v' : 'w';
}
if (ELFObjectFileBase *ELF = dyn_cast<ELFObjectFileBase>(&Obj))
if (isa<ELFObjectFileBase>(&Obj))
if (ELFSymbolRef(*I).getELFType() == ELF::STT_GNU_IFUNC)
return 'i';
if (!isa<MachOObjectFile>(Obj) && (Symflags & object::SymbolRef::SF_Weak))