[MachO] Add cpu(sub)type tests and improve error handling
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Mon, 24 Feb 2020 18:42:21 +0000 (10:42 -0800)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Mon, 24 Feb 2020 18:44:42 +0000 (10:44 -0800)
commit7b0a5683fa09be4e60bc93526aad7b63bbca687c
treeb16e8ab06bc908e4fe1ec3f62abe446eb64ce4ea
parent00570c2f18872ce0a1f68cc73e7e259ad67aa60d
[MachO] Add cpu(sub)type tests and improve error handling

Add checks for triples that don't use mach-o, and unit tests for
everything.
llvm/lib/BinaryFormat/MachO.cpp
llvm/unittests/BinaryFormat/MachOTest.cpp