[llvm-install-name-tool] Add -change option
authorSameer Arora <sameerarora101@fb.com>
Tue, 30 Jun 2020 18:01:51 +0000 (11:01 -0700)
committerShoaib Meenai <smeenai@fb.com>
Tue, 30 Jun 2020 18:28:53 +0000 (11:28 -0700)
commit2bdcd8b14f470b06fa6cf48972902e4b8030b088
treefd93c8a42cf29203b9fc10603bf44413270dc2e4
parentca518c49183aa3bace0def1827c1def7a28fa293
[llvm-install-name-tool] Add -change option

Implement `-change` option for install-name-tool. The behavior exactly
matches that of cctools. Depends on D82410.

Reviewed By: jhenderson, smeenai

Differential Revision: https://reviews.llvm.org/D82613
llvm/test/tools/llvm-objcopy/MachO/install-name-tool-change.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/CopyConfig.cpp
llvm/tools/llvm-objcopy/CopyConfig.h
llvm/tools/llvm-objcopy/InstallNameToolOpts.td
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp