[llvm] add -o flag to llvm-bitcode-strip
authorRichard Howell <rhow@fb.com>
Fri, 4 Mar 2022 16:00:21 +0000 (08:00 -0800)
committerDaniel Rodríguez Troitiño <danielrodriguez@fb.com>
Fri, 4 Mar 2022 16:03:51 +0000 (08:03 -0800)
commit8e6d2fe4d4035b5fe198e06fc08b707b58a64c68
treefc2156859d442acce6f8fb2dbda3e238eaff1cef
parent4a94a33ca6cb9098ed665dac74f418615d35ddea
[llvm] add -o flag to llvm-bitcode-strip

Add the -o flag to specify an output path for llvm-bitcode-strip.
This matches the interface to the Xcode bitcode_strip tool.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D120731
llvm/test/tools/llvm-objcopy/MachO/bitcode-strip.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/BitcodeStripOpts.td
llvm/tools/llvm-objcopy/ObjcopyOptions.cpp