This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Unify format specific options check.
AbandonedPublic

Authored by avl on Mar 30 2021, 4:00 PM.

Details

Summary

This patch is extracted from D99055 to do functional change separately
from pure refactoring. While handling llvm-objcopy command line options
there is a check for options non-supported on the concrete format.
This check is done differently for various formats. Some formats check
for unsupported options before handling normal options. Other formats
check for unsupported options after handling normal options.
This patch makes processing similar for all formats. It firstly checks
for unsupported options and then handle normal options.

Diff Detail

Event Timeline

avl created this revision.Mar 30 2021, 4:00 PM
avl requested review of this revision.Mar 30 2021, 4:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2021, 4:00 PM
dblaikie accepted this revision.Mar 30 2021, 8:35 PM

Seems OK /if/ we go in the direction of D99055 (so please hold off on committing this until that one's approved/settled). Specifically: If we don't go in that direction, it seems good that each of these checks are in the format-specific parts of the code, rather than all together in the main part of the code.

This revision is now accepted and ready to land.Mar 30 2021, 8:35 PM
avl abandoned this revision.Sep 8 2021, 9:19 AM