@@ -18,22 +18,22 @@ include "OptParser.td"
18
18
// Target Options
19
19
//===----------------------------------------------------------------------===//
20
20
21
- def triple : Separate<"- triple">,
21
+ def triple : Separate<["-"], " triple">,
22
22
HelpText<"Specify target triple (e.g. x86_64-pc-linux-gnu)">;
23
- def target_cpu : Separate<"- target-cpu">,
23
+ def target_cpu : Separate<["-"], " target-cpu">,
24
24
HelpText<"Target a specific cpu type">;
25
- def target_feature : Separate<"- target-feature">,
25
+ def target_feature : Separate<["-"], " target-feature">,
26
26
HelpText<"Target specific attributes">;
27
27
28
28
//===----------------------------------------------------------------------===//
29
29
// Language Options
30
30
//===----------------------------------------------------------------------===//
31
31
32
- def I : JoinedOrSeparate<"- I">, MetaVarName<"<directory>">,
32
+ def I : JoinedOrSeparate<["-"], " I">, MetaVarName<"<directory>">,
33
33
HelpText<"Add directory to include search path">;
34
- def n : Flag<"- n">,
34
+ def n : Flag<["-"], " n">,
35
35
HelpText<"Don't automatically start assembly file with a text section">;
36
- def L : Flag<"- L">,
36
+ def L : Flag<["-"], " L">,
37
37
HelpText<"Save temporary labels in the symbol table. "
38
38
"Note this may change .s semantics, it should almost never be used "
39
39
"on compiler generated code!">;
@@ -42,50 +42,49 @@ def L : Flag<"-L">,
42
42
// Frontend Options
43
43
//===----------------------------------------------------------------------===//
44
44
45
- def o : Separate<"-o">, MetaVarName<"<path>">, HelpText<"Specify output file">;
45
+ def o : Separate<["-"], "o">, MetaVarName<"<path>">,
46
+ HelpText<"Specify output file">;
46
47
47
- def filetype : Separate<"- filetype">,
48
+ def filetype : Separate<["-"], " filetype">,
48
49
HelpText<"Specify the output file type ('asm', 'null', or 'obj')">;
49
50
50
- def help : Flag<"-help">,
51
+ def help : Flag<["-", "--"], "-help">,
51
52
HelpText<"Print this help text">;
52
- def _help : Flag<"--help">, Alias<help>;
53
53
54
- def version : Flag<"- version">,
54
+ def version : Flag<["-", "--"], " version">,
55
55
HelpText<"Print the assembler version">;
56
- def _version : Flag<"--version">, Alias<version>;
57
- def v : Flag<"-v">, Alias<version>;
56
+ def v : Flag<["-"], "v">, Alias<version>;
58
57
59
58
// Generic forwarding to LLVM options. This should only be used for debugging
60
59
// and experimental features.
61
- def mllvm : Separate<"- mllvm">,
60
+ def mllvm : Separate<["-"], " mllvm">,
62
61
HelpText<"Additional arguments to forward to LLVM's option processing">;
63
62
64
63
//===----------------------------------------------------------------------===//
65
64
// Transliterate Options
66
65
//===----------------------------------------------------------------------===//
67
66
68
- def output_asm_variant : Separate<"- output-asm-variant">,
67
+ def output_asm_variant : Separate<["-"], " output-asm-variant">,
69
68
HelpText<"Select the asm variant index to use for output">;
70
- def show_encoding : Flag<"- show-encoding">,
69
+ def show_encoding : Flag<["-"], " show-encoding">,
71
70
HelpText<"Show instruction encoding information in transliterate mode">;
72
- def show_inst : Flag<"- show-inst">,
71
+ def show_inst : Flag<["-"], " show-inst">,
73
72
HelpText<"Show internal instruction representation in transliterate mode">;
74
73
75
74
//===----------------------------------------------------------------------===//
76
75
// Assemble Options
77
76
//===----------------------------------------------------------------------===//
78
77
79
- def relax_all : Flag<"- relax-all">,
78
+ def relax_all : Flag<["-"], " relax-all">,
80
79
HelpText<"Relax all fixups (for performance testing)">;
81
80
82
- def no_exec_stack : Flag<"- -noexecstack">,
81
+ def no_exec_stack : Flag<["-"], " -noexecstack">,
83
82
HelpText<"Mark the file as not needing an executable stack">;
84
83
85
- def fatal_warnings : Flag<"--fatal-warnings">,
84
+ def fatal_warnings : Flag<[ "--"], " fatal-warnings">,
86
85
HelpText<"Consider warnings as errors">;
87
86
88
- def g : Flag<"- g">, HelpText<"Generate source level debug information">;
87
+ def g : Flag<["-"], " g">, HelpText<"Generate source level debug information">;
89
88
90
- def dwarf_debug_flags : Separate<"- dwarf-debug-flags">,
89
+ def dwarf_debug_flags : Separate<["-"], " dwarf-debug-flags">,
91
90
HelpText<"The string to embed in the Dwarf debug flags record.">;
0 commit comments