mirror of
https://github.com/rui314/mold.git
synced 2024-12-25 17:34:02 +03:00
28 lines
815 B
TableGen
28 lines
815 B
TableGen
include "llvm/Option/OptParser.td"
|
|
|
|
class F<string name>: Flag<["--", "-"], name>;
|
|
|
|
multiclass Eq<string name, string help> {
|
|
def NAME: Separate<["--", "-"], name>;
|
|
def NAME # _eq: Joined<["--", "-"], name # "=">, Alias<!cast<Separate>(NAME)>,
|
|
HelpText<help>;
|
|
}
|
|
|
|
def o: JoinedOrSeparate<["-"], "o">, MetaVarName<"<path>">,
|
|
HelpText<"Path to file to write output">;
|
|
|
|
def print_map: F<"print-map">,
|
|
HelpText<"Print a link map to the standard output">;
|
|
|
|
defm thread_count: Eq<"thread-count", "Number of threads to use">;
|
|
|
|
def stat: F<"stat">;
|
|
|
|
def static: F<"static">, HelpText<"Do not link against shared libraries">;
|
|
|
|
defm trace_symbol: Eq<"trace-symbol", "Trace references to symbol">;
|
|
|
|
def trace: F<"trace">, HelpText<"Print the name of each input file">;
|
|
|
|
def filler: Separate<["--", "-"], "filler">;
|