]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/llvm/tools/clang/include/clang/Driver/CC1AsOptions.td
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / llvm / tools / clang / include / clang / Driver / CC1AsOptions.td
1 //===--- CC1AsOptions.td - Options for clang -cc1as -----------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 //  This file defines the options accepted by clang -cc1as.
11 //
12 //===----------------------------------------------------------------------===//
13
14 // Include the common option parsing interfaces.
15 include "OptParser.td"
16
17 //===----------------------------------------------------------------------===//
18 // Target Options
19 //===----------------------------------------------------------------------===//
20
21 def triple : Separate<["-"], "triple">,
22   HelpText<"Specify target triple (e.g. x86_64-pc-linux-gnu)">;
23 def target_cpu : Separate<["-"], "target-cpu">,
24   HelpText<"Target a specific cpu type">;
25 def target_feature : Separate<["-"], "target-feature">,
26   HelpText<"Target specific attributes">;
27
28 //===----------------------------------------------------------------------===//
29 // Language Options
30 //===----------------------------------------------------------------------===//
31
32 def I : JoinedOrSeparate<["-"], "I">, MetaVarName<"<directory>">,
33   HelpText<"Add directory to include search path">;
34 def n : Flag<["-"], "n">,
35   HelpText<"Don't automatically start assembly file with a text section">;
36 def L : Flag<["-"], "L">,
37   HelpText<"Save temporary labels in the symbol table. "
38            "Note this may change .s semantics, it should almost never be used "
39            "on compiler generated code!">;
40 def main_file_name : Separate<["-"], "main-file-name">,
41   HelpText<"Main file name to use for debug info">;
42
43 //===----------------------------------------------------------------------===//
44 // Frontend Options
45 //===----------------------------------------------------------------------===//
46
47 def o : Separate<["-"], "o">, MetaVarName<"<path>">,
48   HelpText<"Specify output file">;
49
50 def filetype : Separate<["-"], "filetype">,
51     HelpText<"Specify the output file type ('asm', 'null', or 'obj')">;
52
53 def help : Flag<["-", "--"], "help">,
54   HelpText<"Print this help text">;
55
56 def version : Flag<["-", "--"], "version">,
57   HelpText<"Print the assembler version">;
58 def v : Flag<["-"], "v">, Alias<version>;
59
60 // Generic forwarding to LLVM options. This should only be used for debugging
61 // and experimental features.
62 def mllvm : Separate<["-"], "mllvm">,
63   HelpText<"Additional arguments to forward to LLVM's option processing">;
64
65 //===----------------------------------------------------------------------===//
66 // Transliterate Options
67 //===----------------------------------------------------------------------===//
68
69 def output_asm_variant : Separate<["-"], "output-asm-variant">,
70     HelpText<"Select the asm variant index to use for output">;
71 def show_encoding : Flag<["-"], "show-encoding">,
72     HelpText<"Show instruction encoding information in transliterate mode">;
73 def show_inst : Flag<["-"], "show-inst">,
74     HelpText<"Show internal instruction representation in transliterate mode">;
75
76 //===----------------------------------------------------------------------===//
77 // Assemble Options
78 //===----------------------------------------------------------------------===//
79
80 def relax_all : Flag<["-"], "relax-all">,
81     HelpText<"Relax all fixups (for performance testing)">;
82
83 def no_exec_stack : Flag<["--"], "noexecstack">,
84     HelpText<"Mark the file as not needing an executable stack">;
85
86 def fatal_warnings : Flag<["--"], "fatal-warnings">,
87     HelpText<"Consider warnings as errors">;
88
89 def g : Flag<["-"], "g">, HelpText<"Generate source level debug information">;
90
91 def fdebug_compilation_dir : Separate<["-"], "fdebug-compilation-dir">,
92   HelpText<"The compilation directory to embed in the debug info.">;
93
94 def dwarf_debug_flags : Separate<["-"], "dwarf-debug-flags">,
95   HelpText<"The string to embed in the Dwarf debug flags record.">;
96
97 def dwarf_debug_producer : Separate<["-"], "dwarf-debug-producer">,
98   HelpText<"The string to embed in the Dwarf debug AT_producer record.">;