summaryrefslogtreecommitdiffstats
path: root/llvm/test/ObjectYAML/MachO/mach_header_32_malformed.yaml
Commit message (Collapse)AuthorAgeFilesLines
* [yaml2obj] Remove --format option in favor of YAML tagsChris Bieneman2016-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | Summary: Our YAML library's handling of tags isn't perfect, but it is good enough to get rid of the need for the --format argument to yaml2obj. This patch does exactly that. Instead of requiring --format, it infers the format based on the tags found in the object file. The supported tags are: !ELF !COFF !mach-o !fat-mach-o I have a corresponding patch that is quite large that fixes up all the in-tree test cases. Reviewers: rafael, Bigcheese, compnerd, silvas Subscribers: compnerd, llvm-commits Differential Revision: http://reviews.llvm.org/D21711 llvm-svn: 273915
* [yaml2macho] Removing asserts in favor of explicit yaml parse errorChris Bieneman2016-06-231-0/+15
32-bit Mach headers don't have reserved fields. When generating the mapping for 32-bit headers leaving off the reserved field will result in parse errors if the field is present in the yaml. Added a CHECK-NOT line to ensure that mach_header.yaml isn't adding a reserved field, and a test to ensure that the parser error gets hit with 32-bit headers. llvm-svn: 273623
OpenPOWER on IntegriCloud