1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Fix -Wunused-variable. NFC.

This commit is contained in:
Michael Liao 2020-03-13 20:50:35 -04:00
parent 797eaf4fbd
commit ac398f6993

View File

@ -1900,7 +1900,7 @@ void printSymbolTable(const ObjectFile *O, StringRef ArchiveName,
if ((Section != O->section_end() || Absolute) && !Weak)
GlobLoc = Global ? 'g' : 'l';
char IFunc = ' ';
if (auto *ELF = dyn_cast<ELFObjectFileBase>(O)) {
if (isa<ELFObjectFileBase>(O)) {
if (ELFSymbolRef(*I).getELFType() == ELF::STT_GNU_IFUNC)
IFunc = 'i';
if (ELFSymbolRef(*I).getBinding() == ELF::STB_GNU_UNIQUE)