mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 02:07:56 +00:00
0b8bd66167
Without this patch passing a .o file with multiple sections with the same name to obj2yaml produces a yaml file that yaml2obj cannot handle. This is pr34162. The problem is that when specifying, for example, the section of a symbol, we get only Section: foo and don't know which of the sections whose name is foo we have to use. One alternative would be to use section numbers. This would work, but the output from obj2yaml would be very inconvenient to edit as deleting a section would invalidate all indexes. Another alternative would be to invent a unique section id that would exist only on yaml. This would work, but seems a bit heavy handed. We could make the id optional and default it to the section name. Since in the last alternative the id is basically what this patch uses as a name, it can be implemented as a followup patch if needed. llvm-svn: 312585 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
coff2yaml.cpp | ||
dwarf2yaml.cpp | ||
elf2yaml.cpp | ||
Error.cpp | ||
Error.h | ||
macho2yaml.cpp | ||
obj2yaml.cpp | ||
obj2yaml.h | ||
wasm2yaml.cpp |