xref: /freebsd/contrib/llvm-project/llvm/tools/llvm-dwp/Opts.td (revision a90b9d0159070121c221b966469c3e36d912bf82)
1include "llvm/Option/OptParser.td"
2
3class F<string name, string help> : Flag<["-", "--"], name>, HelpText<help>;
4class S<string name, string help> : Separate<["-", "--"], name>, HelpText<help>;
5
6def help : F<"help", "Display this help">;
7def : F<"h", "Alias for --help">, Alias<help>;
8def version : F<"version", "Display the version of this program">;
9
10def execFileNames : S<"e", "Specify the executable/library files to get the list of *.dwo from.">, MetaVarName<"<filename>">;
11def outputFileName : S<"o", "Specify the output file.">, MetaVarName<"<filename>">;
12def continueOnCuIndexOverflow : Flag<["-", "--"], "continue-on-cu-index-overflow">;
13def continueOnCuIndexOverflow_EQ : Joined<["-", "--"], "continue-on-cu-index-overflow=">,
14  HelpText<"default = continue, This turns an error when offset \n"
15    "\t\tfor .debug_*.dwo sections overfolws into a warning. = soft-stop, This produces a \n"
16    "\t\ttruncated but valid DWP file, discarding any DWO files that would not fit within \n"
17    "\t\tthe 32 bit/4GB limits of the format.">,
18  Values<"continue,soft-stop">;
19