Skip to content

Commit

Permalink
At Jim Grosbach's request detemplate Object/MachO.h.
Browse files Browse the repository at this point in the history
We are still able to handle mixed endian objects by swapping one struct at a
time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179778 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
espindola committed Apr 18, 2013
1 parent 77327fd commit fd7aa38
Show file tree
Hide file tree
Showing 11 changed files with 2,039 additions and 1,755 deletions.
3 changes: 2 additions & 1 deletion include/llvm/Object/Binary.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ class Binary {
}

bool isLittleEndian() const {
return !(TypeID == ID_ELF32B || TypeID == ID_ELF64B);
return !(TypeID == ID_ELF32B || TypeID == ID_ELF64B ||
TypeID == ID_MachO32B || TypeID == ID_MachO64B);
}
};

Expand Down
Loading

0 comments on commit fd7aa38

Please sign in to comment.