blob: 0aa1affbebc9f7beda66df1e1e422cf956d8d1de [file] [log] [blame]
Peter Collingbournebc051632015-06-09 21:50:22 +00001include "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.
6class F<string name> : Flag<["/", "-", "-?"], name>;
7
8// Flag that takes one argument after ":".
9class P<string name, string help> :
10 Joined<["/", "-", "-?"], name#":">, HelpText<help>;
11
Peter Collingbourne70708272015-06-20 00:57:12 +000012def libpath: P<"libpath", "Object file search path">;
Peter Collingbournebc051632015-06-09 21:50:22 +000013def out : P<"out", "Path to file to write output">;
14
15//==============================================================================
16// The flags below do nothing. They are defined only for lib.exe compatibility.
17//==============================================================================
Peter Collingbourne70708272015-06-20 00:57:12 +000018
19class QF<string name> : Joined<["/", "-", "-?"], name#":">;
20
21def ignore : QF<"ignore">;
22def machine: QF<"machine">;
Peter Collingbournebc051632015-06-09 21:50:22 +000023def nologo : F<"nologo">;