]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/ToolDrivers/llvm-lib/Options.td
Vendor import of llvm trunk r338150:
[FreeBSD/FreeBSD.git] / 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 def out    : P<"out", "Path to file to write output">;
14
15 def llvmlibthin : F<"llvmlibthin">,
16     HelpText<"Make .lib point to .obj files instead of copying their contents">;
17
18 def help : F<"help">;
19 def help_q : Flag<["/?", "-?"], "">, Alias<help>;
20
21 //==============================================================================
22 // The flags below do nothing. They are defined only for lib.exe compatibility.
23 //==============================================================================
24
25 class QF<string name> : Joined<["/", "-", "-?"], name#":">;
26
27 def ignore : QF<"ignore">;
28 def machine: QF<"machine">;
29 def nologo : F<"nologo">;