Reland [lld-macho] Fix bug in reading cpuSubType field.
authorVy Nguyen <vyng@google.com>
Fri, 9 Dec 2022 14:06:43 +0000 (09:06 -0500)
committerVy Nguyen <vyng@google.com>
Fri, 9 Dec 2022 19:03:40 +0000 (14:03 -0500)
commitf472da190b65a1db2512960ee5334889a6663aef
tree31882118ac86c2b2be3d2f8324255d2da1dceb00
parent981a28f7ae2cb99f75ca234b05f2c75ad3a356d7
Reland [lld-macho] Fix bug in reading cpuSubType field.

This reverts commit 66692c822aee47baa2cb71f92090d58a8dc01116.

New changes:
  - update test to require aarch64
  - update test to not hard-code cpu[sub] type values (since they could change)
  - update test to temporarily skip windows (because llvm-mc on windows doesn't seem to work with triple arm64-apple-macos)

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