summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy/ObjcopyOpts.td
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2018-09-21 00:47:31 +0000
committerJordan Rupprecht <rupprecht@google.com>2018-09-21 00:47:31 +0000
commit7b1c8168c7912e2cb5b10ad56f836ccc552e3c0e (patch)
tree27653ae5e924f0b485ba56542dee2051993e2c08 /llvm/tools/llvm-objcopy/ObjcopyOpts.td
parent07bbddb4ba8c57dd745fe6f486101d445e59ad10 (diff)
downloadbcm5719-llvm-7b1c8168c7912e2cb5b10ad56f836ccc552e3c0e.tar.gz
bcm5719-llvm-7b1c8168c7912e2cb5b10ad56f836ccc552e3c0e.zip
[llvm-objcopy/llvm-strip]: handle --version
Summary: Implement --version for objcopy and strip. I think there are LLVM utilities that automatically handle this, but that doesn't seem to work with custom parsing since this binary handles both objcopy and strip, so it uses custom parsing. This fixes PR38298 Reviewers: jhenderson, alexshap, jakehehrlich Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D52328 llvm-svn: 342702
Diffstat (limited to 'llvm/tools/llvm-objcopy/ObjcopyOpts.td')
-rw-r--r--llvm/tools/llvm-objcopy/ObjcopyOpts.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objcopy/ObjcopyOpts.td b/llvm/tools/llvm-objcopy/ObjcopyOpts.td
index 9d771451bc6..469f76d24d0 100644
--- a/llvm/tools/llvm-objcopy/ObjcopyOpts.td
+++ b/llvm/tools/llvm-objcopy/ObjcopyOpts.td
@@ -107,6 +107,9 @@ defm keep_global_symbols
"with '#'. Leading and trailing whitespace is stripped from each "
"line. May be repeated to read symbols from many files.">;
+def version : Flag<[ "-", "--" ], "version">,
+ HelpText<"Print the version and exit.">;
+
defm weaken_symbol : Eq<"weaken-symbol">,
MetaVarName<"symbol">,
HelpText<"Mark <symbol> as weak">;
OpenPOWER on IntegriCloud