OSDN Git Service

[llvm-objcopy/llvm-strip]: handle --version
authorJordan Rupprecht <rupprecht@google.com>
Fri, 21 Sep 2018 00:47:31 +0000 (00:47 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Fri, 21 Sep 2018 00:47:31 +0000 (00:47 +0000)
commit5b1329de30669ab18bf56f829c4b6ea426ec6261
tree8e6e6528571427f2cbe212c22b7554fecb129128
parent7b734738932df874a8edd92a71533782ba7e0a1b
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342702 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/objcopy-version.test [new file with mode: 0644]
test/tools/llvm-objcopy/strip-version.test [new file with mode: 0644]
tools/llvm-objcopy/ObjcopyOpts.td
tools/llvm-objcopy/StripOpts.td
tools/llvm-objcopy/llvm-objcopy.cpp