forked from OSchip/llvm-project
92b2e8a295
Our existing yaml::Output code writes tags immediately when mapTag is called, without any state handling. This results in tags on sequence elements being written before the element itself. For example, we see this: SomeArray: !elem_type - key1: 1 key2: 2 !elem_type2 - key3: 3 key4: 4 We should instead see: SomeArray: - !elem_type key1: 1 key2: 2 - !elem_type2 key3: 3 key4: 4 Our reader handles reading properly, so this bug only impacts writing yaml sequences with tagged elements. As a test for this I've modified the Mach-O yaml encoding to allways apply the !mach-o tag when encoding MachOYAML::Object entries. This results in the !mach-o tag appearing as expected in dumped fat files. llvm-svn: 274067 |
||
---|---|---|
.. | ||
bind_opcode.yaml | ||
bogus_load_command.yaml | ||
dylib_dylinker_command.yaml | ||
export_trie.yaml | ||
fat_macho_i386_x86_64.yaml | ||
lazy_bind_opcode.yaml | ||
load_commands.yaml | ||
mach_header.yaml | ||
mach_header_32_malformed.yaml | ||
mach_header_64.yaml | ||
out_of_order_linkedit.yaml | ||
rebase_opcode.yaml | ||
sections.yaml | ||
symtab.yaml | ||
weak_bind_opcode.yaml |