xref: /freebsd/contrib/llvm-project/llvm/tools/llvm-objcopy/BitcodeStripOpts.td (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
1e8d8bef9SDimitry Andric//===-- BitcodeStripOpts.td - llvm-bitcode-strip options  ---------------*-===//
2e8d8bef9SDimitry Andric//
3e8d8bef9SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4e8d8bef9SDimitry Andric// See https://llvm.org/LICENSE.txt for license information.
5e8d8bef9SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6e8d8bef9SDimitry Andric//
7e8d8bef9SDimitry Andric//===----------------------------------------------------------------------===//
8e8d8bef9SDimitry Andric//
9e8d8bef9SDimitry Andric// This file describes the command line options of llvm-bitcode-strip.
10e8d8bef9SDimitry Andric//
11e8d8bef9SDimitry Andric//===----------------------------------------------------------------------===//
12e8d8bef9SDimitry Andric
13e8d8bef9SDimitry Andricinclude "llvm/Option/OptParser.td"
14e8d8bef9SDimitry Andric
15e8d8bef9SDimitry Andricdef help : Flag<["--"], "help">;
16e8d8bef9SDimitry Andric
17e8d8bef9SDimitry Andricdef h : Flag<["-"], "h">, Alias<help>;
18e8d8bef9SDimitry Andric
19e8d8bef9SDimitry Andricdef version : Flag<["--"], "version">,
20*81ad6265SDimitry Andric              HelpText<"Print the version and exit">;
21e8d8bef9SDimitry Andric
22e8d8bef9SDimitry Andricdef V : Flag<["-"], "V">,
23e8d8bef9SDimitry Andric        Alias<version>,
24e8d8bef9SDimitry Andric        HelpText<"Alias for --version">;
25*81ad6265SDimitry Andric
26*81ad6265SDimitry Andricdef remove : Flag<["-"], "r">,
27*81ad6265SDimitry Andric        HelpText<"Remove the __LLVM bitcode segment entirely">;
28*81ad6265SDimitry Andric
29*81ad6265SDimitry Andricdef output : JoinedOrSeparate<["-"], "o">, HelpText<"Write output to <file>">,
30*81ad6265SDimitry Andric             MetaVarName<"<file>">;
31