mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Implement MachOObjectFile::is64Bit directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178996 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c90cc18b6a
commit
49698a1e69
@ -55,7 +55,8 @@ MachOObjectFile::MachOObjectFile(MemoryBuffer *Object, error_code &ec)
|
||||
}
|
||||
|
||||
bool MachOObjectFile::is64Bit() const {
|
||||
return MachOObj->is64Bit();
|
||||
StringRef Magic = getData(0, 4);
|
||||
return (Magic == "\xFE\xED\xFA\xCF") || (Magic == "\xCF\xFA\xED\xFE");
|
||||
}
|
||||
|
||||
const MachOFormat::LoadCommand *
|
||||
|
Loading…
x
Reference in New Issue
Block a user