OSDN Git Service

[llvm-objcopy][MachO] Print an error message on use of unsupported options
authorSeiya Nuta <nuta@seiya.me>
Wed, 29 May 2019 22:21:12 +0000 (22:21 +0000)
committerSeiya Nuta <nuta@seiya.me>
Wed, 29 May 2019 22:21:12 +0000 (22:21 +0000)
commit0bc30fd5ab4250c7eb24434f6ecfd58d764bff92
treea127d3cb7f41eb9e0e43e7e8cca9f434f033a57c
parent76a9747cd75f2f1a7639402286b0978ce1147776
[llvm-objcopy][MachO] Print an error message on use of unsupported options

Summary:
It is better to print an error message instead of silently ignoring unsupported options.

As mentioned in https://reviews.llvm.org/D57045, this is not the best solution and we should print which flag is not supported at some time.

Reviewers: alexshap, rupprecht, jhenderson, jakehehrlich

Reviewed By: alexshap, rupprecht, jakehehrlich

Subscribers: jakehehrlich, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62578

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362040 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-objcopy/MachO/MachOObjcopy.cpp