[lld-macho] Check simulator platforms to avoid issuing false positive errors.
authorVy Nguyen <vyng@google.com>
Tue, 4 May 2021 20:23:21 +0000 (16:23 -0400)
committerVy Nguyen <vyng@google.com>
Wed, 5 May 2021 22:07:58 +0000 (18:07 -0400)
commit23233ad139f4b69ea4ed1cdbd22abc72c7a4cb93
treeea89aedbc1e6be3db8d009bb787d13bba41661d4
parentceccfaae140d2a067d9023a9a3ca71efc86f9e2d
[lld-macho] Check simulator platforms to avoid issuing false positive errors.

Currently the linker causes unnecessary errors when either the target or the config's platform is a simulator.

Differential Revision: https://reviews.llvm.org/D101855
lld/MachO/InputFiles.cpp
lld/test/MachO/invalid/incompatible-arch.s