header-abi-dumper: Refactor argv fixes

This commit extract the logic for argv fixes so that workarounds can be
kept in another source file.

Bug: 77161122
Test: Build header-abi-dumper, copy to prebuilts/clang-tools, and
rebuild bionic.

Change-Id: I74eb7cb001f854062530f5770ce1e01c8bf996e9
4 files changed