aprantl added a comment.

yaml2obj sounds generally like a good solution. I should note that right now 
yaml2obj is only used/tested for the (narrow) use-case of testing the linker. 
For creating debug-info-related testcases, I found it both to high and too low 
an abstraction. Too low, because it currently forces you to manually specify 
details such as Mach-O load commands, and cannot calculate offsets itself (you 
really want some kind of label support), too high, because it can for example 
only synthesize DWARF4 headers in debug info sections. For this reason we often 
went with assembler instead of yaml for llvm-dwarfdump tests. None of the 
problems I mentioned should be unsurmountable, but the tool needs some love in 
order to make it useful for each specific use-case.


https://reviews.llvm.org/D40539



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to