[llvm] r290383 - [ObjectYAML] Fixing big endian bots from r290381
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 22 14:16:04 PST 2016
Author: cbieneman
Date: Thu Dec 22 16:16:04 2016
New Revision: 290383
URL: http://llvm.org/viewvc/llvm-project?rev=290383&view=rev
Log:
[ObjectYAML] Fixing big endian bots from r290381
Bot URL:
http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/2505
Modified:
llvm/trunk/test/ObjectYAML/MachO/BigEndian.yaml
llvm/trunk/tools/yaml2obj/yaml2macho.cpp
Modified: llvm/trunk/test/ObjectYAML/MachO/BigEndian.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ObjectYAML/MachO/BigEndian.yaml?rev=290383&r1=290382&r2=290383&view=diff
==============================================================================
--- llvm/trunk/test/ObjectYAML/MachO/BigEndian.yaml (original)
+++ llvm/trunk/test/ObjectYAML/MachO/BigEndian.yaml Thu Dec 22 16:16:04 2016
@@ -89,7 +89,6 @@ LinkEditData:
- ''
...
-#CHECK: IsLittleEndian: false
#CHECK: FileHeader:
#CHECK: magic: 0xFEEDFACE
#CHECK: cputype: 0x00000012
Modified: llvm/trunk/tools/yaml2obj/yaml2macho.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/yaml2obj/yaml2macho.cpp?rev=290383&r1=290382&r2=290383&view=diff
==============================================================================
--- llvm/trunk/tools/yaml2obj/yaml2macho.cpp (original)
+++ llvm/trunk/tools/yaml2obj/yaml2macho.cpp Thu Dec 22 16:16:04 2016
@@ -358,7 +358,7 @@ void writeNListEntry(MachOYAML::NListEnt
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));
}
More information about the llvm-commits
mailing list