[Object][MachO] Rewrite macho-invalid-fat-arch-size into YAML
authorSteven Wu <stevenwu@apple.com>
Wed, 6 Nov 2019 19:25:50 +0000 (11:25 -0800)
committerSteven Wu <stevenwu@apple.com>
Wed, 6 Nov 2019 19:26:25 +0000 (11:26 -0800)
commit6da58e7e0fac1e421d6a5a6e48ed8836c67ac543
tree826ee4c3096371f734b5babdb5d4b9652f4b881c
parentdad7a185101d23598d82147a4feed486ba0abafb
[Object][MachO] Rewrite macho-invalid-fat-arch-size into YAML

Summary:
Rewrite one of the invalid macho test input file with YAML file. The
original invalid macho is breaking our internal test infrastusture
because it is too broken to be copy around.

Need to relax an assertion in the YAML/MachoEmitter to allow yaml2obj to
write an invalid object like this.

rdar://problem/56879982

Reviewers: beanz, mtrent

Reviewed By: beanz

Subscribers: hiraditya, jkorous, dexonsmith, ributzka, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69856
llvm/lib/ObjectYAML/MachOEmitter.cpp
llvm/test/Object/Inputs/macho-invalid-fat-arch-size [deleted file]
llvm/test/Object/Inputs/macho-invalid-fat-arch-size.yaml [new file with mode: 0644]
llvm/test/Object/macho-invalid.test