blob: 5a56ef7468d4a1098afe260ff3da8065a8d6b69e [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
Rafael Espindola2bec8502015-07-17 16:01:11 +000015def llvmlibthin : F<"llvmlibthin">;
16
Peter Collingbournebc051632015-06-09 21:50:22 +000017//==============================================================================
18// The flags below do nothing. They are defined only for lib.exe compatibility.
19//==============================================================================
Peter Collingbourne70708272015-06-20 00:57:12 +000020
21class QF<string name> : Joined<["/", "-", "-?"], name#":">;
22
23def ignore : QF<"ignore">;
24def machine: QF<"machine">;
Peter Collingbournebc051632015-06-09 21:50:22 +000025def nologo : F<"nologo">;