summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-09-05 22:30:00 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-09-05 22:30:00 +0000
commit88ee57ebed3b04d2e64bfa5c6927600174b27088 (patch)
tree36bc58c047dd40bd350f1dfd46d594344a06bfd9 /llvm/lib/Transforms
parent4c744026014b48998c09df37917f41fccbc7e612 (diff)
downloadbcm5719-llvm-88ee57ebed3b04d2e64bfa5c6927600174b27088.tar.gz
bcm5719-llvm-88ee57ebed3b04d2e64bfa5c6927600174b27088.zip
obj2yaml: Print unique section names.
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
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud