xref: /freebsd/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/Options.td (revision 0ad011ececb978e22a9bff2acf76633b094f1ff6)
1include "llvm/Option/OptParser.td"
2
3def m: JoinedOrSeparate<["-"], "m">, HelpText<"Set target machine">;
4def m_long : JoinedOrSeparate<["--"], "machine">, Alias<m>;
5
6def l: JoinedOrSeparate<["-"], "l">, HelpText<"Generate an import lib">;
7def l_long : JoinedOrSeparate<["--"], "output-lib">, Alias<l>;
8
9def D: JoinedOrSeparate<["-"], "D">, HelpText<"Specify the input DLL Name">;
10def D_long : JoinedOrSeparate<["--"], "dllname">, Alias<D>;
11
12def d: JoinedOrSeparate<["-"], "d">, HelpText<"Input .def File">;
13def d_long : JoinedOrSeparate<["--"], "input-def">, Alias<d>;
14
15def k: Flag<["-"], "k">, HelpText<"Kill @n Symbol from export">;
16def k_alias: Flag<["--"], "kill-at">, Alias<k>;
17
18def no_leading_underscore: Flag<["--"], "no-leading-underscore">,
19    HelpText<"Don't add leading underscores on symbols">;
20
21//==============================================================================
22// The flags below do nothing. They are defined only for dlltool compatibility.
23//==============================================================================
24
25def S: JoinedOrSeparate<["-"], "S">, HelpText<"Assembler">;
26def S_alias: JoinedOrSeparate<["--"], "as">, Alias<S>;
27
28def f: JoinedOrSeparate<["-"], "f">, HelpText<"Assembler Flags">;
29def f_alias: JoinedOrSeparate<["--"], "as-flags">, Alias<f>;
30
31def t: JoinedOrSeparate<["-"], "t">, HelpText<"Prefix for temporary files (ignored)">;
32def t_alias: JoinedOrSeparate<["--"], "temp-prefix">, Alias<t>;
33