diff options
| author | Martin Storsjo <martin@martin.st> | 2018-11-28 06:51:50 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2018-11-28 06:51:50 +0000 |
| commit | e9af7158200643dd3ff0feb062fecd564345366c (patch) | |
| tree | 2a3328722e53d06a221794eca511498ed6fbf3b9 /llvm/tools/llvm-objcopy | |
| parent | dab73ce1dc5b0398b906d828e06afadae14d3c8f (diff) | |
| download | bcm5719-llvm-e9af7158200643dd3ff0feb062fecd564345366c.tar.gz bcm5719-llvm-e9af7158200643dd3ff0feb062fecd564345366c.zip | |
[llvm-objcopy] Hook up the -V alias to --version, output "GNU strip"
This allows libtool to detect the presence of llvm-strip and use
it with the options --strip-debug and --strip-unneeded.
Also hook up the -V alias for objcopy.
Differential Revision: https://reviews.llvm.org/D54936
llvm-svn: 347731
Diffstat (limited to 'llvm/tools/llvm-objcopy')
| -rw-r--r-- | llvm/tools/llvm-objcopy/CopyConfig.cpp | 2 | ||||
| -rw-r--r-- | llvm/tools/llvm-objcopy/ObjcopyOpts.td | 1 | ||||
| -rw-r--r-- | llvm/tools/llvm-objcopy/StripOpts.td | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objcopy/CopyConfig.cpp b/llvm/tools/llvm-objcopy/CopyConfig.cpp index b4ebbc5fcfd..0385782fa91 100644 --- a/llvm/tools/llvm-objcopy/CopyConfig.cpp +++ b/llvm/tools/llvm-objcopy/CopyConfig.cpp @@ -226,6 +226,7 @@ DriverConfig parseObjcopyOptions(ArrayRef<const char *> ArgsArr) { } if (InputArgs.hasArg(OBJCOPY_version)) { + outs() << "llvm-objcopy, compatible with GNU objcopy\n"; cl::PrintVersionMessage(); exit(0); } @@ -383,6 +384,7 @@ DriverConfig parseStripOptions(ArrayRef<const char *> ArgsArr) { } if (InputArgs.hasArg(STRIP_version)) { + outs() << "llvm-strip, compatible with GNU strip\n"; cl::PrintVersionMessage(); exit(0); } diff --git a/llvm/tools/llvm-objcopy/ObjcopyOpts.td b/llvm/tools/llvm-objcopy/ObjcopyOpts.td index 6a84155a089..4217188bbec 100644 --- a/llvm/tools/llvm-objcopy/ObjcopyOpts.td +++ b/llvm/tools/llvm-objcopy/ObjcopyOpts.td @@ -165,3 +165,4 @@ defm prefix_symbols def version : Flag<["-", "--"], "version">, HelpText<"Print the version and exit.">; +def V : Flag<["-"], "V">, Alias<version>; diff --git a/llvm/tools/llvm-objcopy/StripOpts.td b/llvm/tools/llvm-objcopy/StripOpts.td index 032aa6f85c7..fa98e27e932 100644 --- a/llvm/tools/llvm-objcopy/StripOpts.td +++ b/llvm/tools/llvm-objcopy/StripOpts.td @@ -64,3 +64,4 @@ def x : Flag<["-"], "x">, Alias<discard_all>; def version : Flag<["-", "--"], "version">, HelpText<"Print the version and exit.">; +def V : Flag<["-"], "V">, Alias<version>; |

