mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[ObjectYAML] Fixing big endian bots from r290381
Bot URL: http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/2505 llvm-svn: 290383
This commit is contained in:
parent
bda2f27975
commit
51fe95ebf7
@ -89,7 +89,6 @@ LinkEditData:
|
||||
- ''
|
||||
...
|
||||
|
||||
#CHECK: IsLittleEndian: false
|
||||
#CHECK: FileHeader:
|
||||
#CHECK: magic: 0xFEEDFACE
|
||||
#CHECK: cputype: 0x00000012
|
||||
|
@ -358,7 +358,7 @@ void writeNListEntry(MachOYAML::NListEntry &NLE, raw_ostream &OS,
|
||||
ListEntry.n_desc = NLE.n_desc;
|
||||
ListEntry.n_value = NLE.n_value;
|
||||
|
||||
if (sys::IsBigEndianHost)
|
||||
if (IsLittleEndian != sys::IsLittleEndianHost)
|
||||
MachO::swapStruct(ListEntry);
|
||||
OS.write(reinterpret_cast<const char *>(&ListEntry), sizeof(NListType));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user