diff options
| author | Alexander Shaposhnikov <alexshap@fb.com> | 2020-09-09 17:11:08 -0700 |
|---|---|---|
| committer | Alexander Shaposhnikov <alexshap@fb.com> | 2020-09-09 17:11:08 -0700 |
| commit | b897729a39d35f95173852fe97da3602ec574c1d (patch) | |
| tree | a0c8a33a84c837f38409f6e5271047bb8acf139b | |
| parent | f559bf31adb21220bbb39e0524b4113f9611fff4 (diff) | |
| download | llvm-b897729a39d35f95173852fe97da3602ec574c1d.zip llvm-b897729a39d35f95173852fe97da3602ec574c1d.tar.gz llvm-b897729a39d35f95173852fe97da3602ec574c1d.tar.bz2 | |
[llvm-install-name-tool] Add -V flag
This diff adds -V alias for --version to make llvm-install-name-tool
consistent with other tools (llvm-objcopy, llvm-strip, etc).
Test plan: make check-all
Differential revision: https://reviews.llvm.org/D87264
| -rw-r--r-- | llvm/test/tools/llvm-objcopy/tool-version.test | 1 | ||||
| -rw-r--r-- | llvm/tools/llvm-objcopy/InstallNameToolOpts.td | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/tool-version.test b/llvm/test/tools/llvm-objcopy/tool-version.test index 5fe33eb..a6cc8f9 100644 --- a/llvm/test/tools/llvm-objcopy/tool-version.test +++ b/llvm/test/tools/llvm-objcopy/tool-version.test @@ -5,6 +5,7 @@ # RUN: llvm-strip -V | FileCheck --check-prefix=STRIP %s # RUN: llvm-install-name-tool --version | FileCheck %s +# RUN: llvm-install-name-tool -V | FileCheck %s # OBJCOPY-DAG: {{ version }} # OBJCOPY-DAG: GNU objcopy diff --git a/llvm/tools/llvm-objcopy/InstallNameToolOpts.td b/llvm/tools/llvm-objcopy/InstallNameToolOpts.td index 04ffe62..7998041 100644 --- a/llvm/tools/llvm-objcopy/InstallNameToolOpts.td +++ b/llvm/tools/llvm-objcopy/InstallNameToolOpts.td @@ -32,3 +32,7 @@ def change: MultiArg<["-", "--"], "change", 2>, def version : Flag<["--"], "version">, HelpText<"Print the version and exit.">; + +def V : Flag<["-"], "V">, + Alias<version>, + HelpText<"Alias for --version">; |
