xref: /freebsd/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/Options.td (revision b64c5a0ace59af62eff52bfe110a521dc73c937b)
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 N: JoinedOrSeparate<["-"], "N">, HelpText<"Input native .def File on ARM64EC">;
16def N_long : JoinedOrSeparate<["--"], "input-native-def">, Alias<N>;
17
18def k: Flag<["-"], "k">, HelpText<"Kill @n Symbol from export">;
19def k_alias: Flag<["--"], "kill-at">, Alias<k>;
20
21def no_leading_underscore: Flag<["--"], "no-leading-underscore">,
22    HelpText<"Don't add leading underscores on symbols">;
23
24//==============================================================================
25// The flags below do nothing. They are defined only for dlltool compatibility.
26//==============================================================================
27
28def S: JoinedOrSeparate<["-"], "S">, HelpText<"Assembler">;
29def S_alias: JoinedOrSeparate<["--"], "as">, Alias<S>;
30
31def f: JoinedOrSeparate<["-"], "f">, HelpText<"Assembler Flags">;
32def f_alias: JoinedOrSeparate<["--"], "as-flags">, Alias<f>;
33
34def t: JoinedOrSeparate<["-"], "t">, HelpText<"Prefix for temporary files (ignored)">;
35def t_alias: JoinedOrSeparate<["--"], "temp-prefix">, Alias<t>;
36