Reland 2nd attempt: [lld-macho] Fix bug in reading cpuSubType field.
authorVy Nguyen <vyng@google.com>
Fri, 16 Dec 2022 20:17:06 +0000 (15:17 -0500)
committerVy Nguyen <vyng@google.com>
Sat, 17 Dec 2022 03:03:46 +0000 (22:03 -0500)
commitb08acee423935c16a1503335d78b84ccbbae4ef8
tree2a5f84a23a9687530a6a9d13809c44501490230f
parent0359c19e8f14b7cbe6ca6b9b0a635b4b63e040bf
Reland 2nd attempt:  [lld-macho] Fix bug in reading cpuSubType field.

This reverts commit 52a118d08fbb0a45cba8c34346d9ccb14f599c6a.

New changes:
Fix tests to dump both slices in the fat-archive because otool
isn't deterministic about which slice it prints across different archs.
(It printed x86 on x86 machines but arm64 on arm64, this was why
the test failed on arm64)

Differential Revision: https://reviews.llvm.org/D139572
lld/MachO/InputFiles.cpp
lld/test/MachO/fat-arch.s