1
0
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:
Chris Bieneman 2016-12-22 22:16:04 +00:00
parent bda2f27975
commit 51fe95ebf7
2 changed files with 1 additions and 2 deletions

View File

@ -89,7 +89,6 @@ LinkEditData:
- ''
...
#CHECK: IsLittleEndian: false
#CHECK: FileHeader:
#CHECK: magic: 0xFEEDFACE
#CHECK: cputype: 0x00000012

View File

@ -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));
}