llvm.org GIT mirror llvm / 29c2881
[ObjectYAML] Fixing big endian bots from r290381 Bot URL: http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/2505 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290383 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 2 years ago
2 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
8888 - ''
8989 ...
9090
91 #CHECK: IsLittleEndian: false
9291 #CHECK: FileHeader:
9392 #CHECK: magic: 0xFEEDFACE
9493 #CHECK: cputype: 0x00000012
357357 ListEntry.n_desc = NLE.n_desc;
358358 ListEntry.n_value = NLE.n_value;
359359
360 if (sys::IsBigEndianHost)
360 if (IsLittleEndian != sys::IsLittleEndianHost)
361361 MachO::swapStruct(ListEntry);
362362 OS.write(reinterpret_cast(&ListEntry), sizeof(NListType));
363363 }