xref: /freebsd-src/contrib/llvm-project/llvm/tools/llvm-dwp/Opts.td (revision cb14a3fe5122c879eae1fb480ed7ce82a699ddb6)
106c3fb27SDimitry Andricinclude "llvm/Option/OptParser.td"
206c3fb27SDimitry Andric
306c3fb27SDimitry Andricclass F<string name, string help> : Flag<["-", "--"], name>, HelpText<help>;
406c3fb27SDimitry Andricclass S<string name, string help> : Separate<["-", "--"], name>, HelpText<help>;
506c3fb27SDimitry Andric
606c3fb27SDimitry Andricdef help : F<"help", "Display this help">;
706c3fb27SDimitry Andricdef : F<"h", "Alias for --help">, Alias<help>;
806c3fb27SDimitry Andricdef version : F<"version", "Display the version of this program">;
906c3fb27SDimitry Andric
1006c3fb27SDimitry Andricdef execFileNames : S<"e", "Specify the executable/library files to get the list of *.dwo from.">, MetaVarName<"<filename>">;
1106c3fb27SDimitry Andricdef outputFileName : S<"o", "Specify the output file.">, MetaVarName<"<filename>">;
12*cb14a3feSDimitry Andricdef continueOnCuIndexOverflow : Flag<["-", "--"], "continue-on-cu-index-overflow">;
13*cb14a3feSDimitry Andricdef continueOnCuIndexOverflow_EQ : Joined<["-", "--"], "continue-on-cu-index-overflow=">,
14*cb14a3feSDimitry Andric  HelpText<"default = continue, This turns an error when offset \n"
15*cb14a3feSDimitry Andric    "\t\tfor .debug_*.dwo sections overfolws into a warning. = soft-stop, This produces a \n"
16*cb14a3feSDimitry Andric    "\t\ttruncated but valid DWP file, discarding any DWO files that would not fit within \n"
17*cb14a3feSDimitry Andric    "\t\tthe 32 bit/4GB limits of the format.">,
18*cb14a3feSDimitry Andric  Values<"continue,soft-stop">;
19