[PATCH] [mach-o] Reader first steps, yaml support

Sean Silva silvas at purdue.edu
Fri Aug 2 16:16:56 PDT 2013


  Nick, my understanding is that yaml2obj/obj2yaml were envisioned for this purpose of representing object files in YAML. Is there anything constraining this functionality to have to live in the LLD tree, or can it live in libObject an hook into yaml2obj/obj2yaml? It seems like much of what you are doing in these unittests would be better-expressed as lit tests using `yaml2obj` piped to `llvm-readobj`.

  I think that Michael would like to have yaml2obj/obj2yaml work for all our supported object files, and it seems like there would be a lot of duplication with this work.

  I was able to get started on the ELF part of yaml2obj earlier this Summer, and it isn't complete yet, but `test/Object/yaml2obj-elf-*` should give you an idea of what to sort of expect.

http://llvm-reviews.chandlerc.com/D1276



More information about the llvm-commits mailing list