HomePhabricator

[llvm-objcopy][NFC] Extract arg parsing logic into a helper function

Authored by keith on Oct 22 2020, 11:13 PM.

Description

[llvm-objcopy][NFC] Extract arg parsing logic into a helper function

This diff refactors the code which determines the tool type based on
how llvm-objcopy is invoked (objcopy vs strip vs bitcode-strip vs install-name-tool).
NFC.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D89713