mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
6909cca568
commit
9aa455951b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user