mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 03:40:35 +00:00
Implement MachOObjectFile::is64Bit directly.
llvm-svn: 178996
This commit is contained in:
parent
f3433150f0
commit
6e5f665040
@ -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…
Reference in New Issue
Block a user