diff options
author | Alexander Shaposhnikov <alexshap@fb.com> | 2019-11-19 23:30:52 -0800 |
---|---|---|
committer | Alexander Shaposhnikov <alexshap@fb.com> | 2019-11-19 23:42:37 -0800 |
commit | c54959c00d0b39f357d48c3b4f955d72de4c9fc1 (patch) | |
tree | af1728a427fa7a2d4948342165cf80891c3be572 /llvm/tools/llvm-objcopy/InstallNameToolOpts.td | |
parent | 7d980319ab241c68bf856c4ac0f3702f50c6c595 (diff) | |
download | bcm5719-llvm-c54959c00d0b39f357d48c3b4f955d72de4c9fc1.tar.gz bcm5719-llvm-c54959c00d0b39f357d48c3b4f955d72de4c9fc1.zip |
Introduce llvm-install-name-tool
This diff adds a new "driver" for llvm-objcopy
which is supposed to emulate the behavior of install-name-tool.
This is a recommit of b5913e6 with ubsan, test dependencies issues fixed.
Differential revision: https://reviews.llvm.org/D69146
Test plan: make check-all
Diffstat (limited to 'llvm/tools/llvm-objcopy/InstallNameToolOpts.td')
-rw-r--r-- | llvm/tools/llvm-objcopy/InstallNameToolOpts.td | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objcopy/InstallNameToolOpts.td b/llvm/tools/llvm-objcopy/InstallNameToolOpts.td new file mode 100644 index 00000000000..35047a57994 --- /dev/null +++ b/llvm/tools/llvm-objcopy/InstallNameToolOpts.td @@ -0,0 +1,22 @@ +//===-- InstallNameToolOpts.td - llvm-install-name-tool options --------*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file describes the command line options of llvm-install-name. +// +//===----------------------------------------------------------------------===// + +include "llvm/Option/OptParser.td" + +def help : Flag<["--"], "help">; +def h : Flag<["-"], "h">, Alias<help>; + +def add_rpath : Option<["-", "--"], "add_rpath", KIND_SEPARATE>, + HelpText<"Add new rpath">; + +def version : Flag<["--"], "version">, + HelpText<"Print the version and exit.">; |