Simplify isSymbolList64Bit. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240784 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2015-06-26 14:11:54 +00:00
parent 6909cca568
commit 9aa455951b

View File

@ -250,15 +250,7 @@ static char isSymbolList64Bit(SymbolicFile &Obj) {
return false;
if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj))
return MachO->is64Bit();
if (isa<ELF32LEObjectFile>(Obj))
return false;
if (isa<ELF64LEObjectFile>(Obj))
return true;
if (isa<ELF32BEObjectFile>(Obj))
return false;
if (isa<ELF64BEObjectFile>(Obj))
return true;
return false;
return cast<ELFObjectFileBase>(Obj).getBytesInAddress() == 8;
}
static StringRef CurrentFilename;