]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/lib/ToolDrivers/llvm-lib/Options.td
Fix a memory leak in if_delgroups() introduced in r334118.
[FreeBSD/FreeBSD.git] / contrib / llvm / lib / ToolDrivers / llvm-lib / Options.td
1 include "llvm/Option/OptParser.td"
2
3 // lib.exe accepts options starting with either a dash or a slash.
4
5 // Flag that takes no arguments.
6 class F<string name> : Flag<["/", "-", "/?", "-?"], name>;
7
8 // Flag that takes one argument after ":".
9 class P<string name, string help> :
10       Joined<["/", "-", "/?", "-?"], name#":">, HelpText<help>;
11
12 def libpath: P<"libpath", "Object file search path">;
13
14 // Can't be called "list" since that's a keyword.
15 def lst    : F<"list">, HelpText<"List contents of .lib file on stdout">;
16 def out    : P<"out", "Path to file to write output">;
17
18 def llvmlibthin : F<"llvmlibthin">,
19     HelpText<"Make .lib point to .obj files instead of copying their contents">;
20
21 def machine: P<"machine", "Specify target platform">;
22
23 def help : F<"help">;
24
25 // /?? and -?? must be before /? and -? to not confuse lib/Options.
26 def help_q : Flag<["/??", "-??", "/?", "-?"], "">, Alias<help>;
27
28 //==============================================================================
29 // The flags below do nothing. They are defined only for lib.exe compatibility.
30 //==============================================================================
31
32 class QF<string name> : Joined<["/", "-", "/?", "-?"], name#":">;
33
34 def ignore : QF<"ignore">;
35 def nologo : F<"nologo">;