mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +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;
|
return false;
|
||||||
if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj))
|
if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj))
|
||||||
return MachO->is64Bit();
|
return MachO->is64Bit();
|
||||||
if (isa<ELF32LEObjectFile>(Obj))
|
return cast<ELFObjectFileBase>(Obj).getBytesInAddress() == 8;
|
||||||
return false;
|
|
||||||
if (isa<ELF64LEObjectFile>(Obj))
|
|
||||||
return true;
|
|
||||||
if (isa<ELF32BEObjectFile>(Obj))
|
|
||||||
return false;
|
|
||||||
if (isa<ELF64BEObjectFile>(Obj))
|
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static StringRef CurrentFilename;
|
static StringRef CurrentFilename;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user