]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/llvm/tools/clang/include/clang/Driver/CC1AsOptions.td
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.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
24 //===----------------------------------------------------------------------===//
25 // Language Options
26 //===----------------------------------------------------------------------===//
27
28 def I : JoinedOrSeparate<"-I">, MetaVarName<"<directory>">,
29   HelpText<"Add directory to include search path">;
30 def n : Flag<"-n">,
31   HelpText<"Don't automatically start assembly file with a text section">;
32 def L : Flag<"-L">,
33   HelpText<"Save temporary labels in the symbol table. "
34            "Note this may change .s semantics, it should almost never be used "
35            "on compiler generated code!">;
36
37 //===----------------------------------------------------------------------===//
38 // Frontend Options
39 //===----------------------------------------------------------------------===//
40
41 def o : Separate<"-o">, MetaVarName<"<path>">, HelpText<"Specify output file">;
42
43 def filetype : Separate<"-filetype">,
44     HelpText<"Specify the output file type ('asm', 'null', or 'obj')">;
45
46 def help : Flag<"-help">,
47   HelpText<"Print this help text">;
48 def _help : Flag<"--help">, Alias<help>;
49
50 def version : Flag<"-version">,
51   HelpText<"Print the assembler version">;
52 def _version : Flag<"--version">, Alias<version>;
53 def v : Flag<"-v">, Alias<version>;
54
55 // Generic forwarding to LLVM options. This should only be used for debugging
56 // and experimental features.
57 def mllvm : Separate<"-mllvm">,
58   HelpText<"Additional arguments to forward to LLVM's option processing">;
59
60 //===----------------------------------------------------------------------===//
61 // Transliterate Options
62 //===----------------------------------------------------------------------===//
63
64 def output_asm_variant : Separate<"-output-asm-variant">,
65     HelpText<"Select the asm variant index to use for output">;
66 def show_encoding : Flag<"-show-encoding">,
67     HelpText<"Show instruction encoding information in transliterate mode">;
68 def show_inst : Flag<"-show-inst">,
69     HelpText<"Show internal instruction representation in transliterate mode">;
70
71 //===----------------------------------------------------------------------===//
72 // Assemble Options
73 //===----------------------------------------------------------------------===//
74
75 def relax_all : Flag<"-relax-all">,
76     HelpText<"Relax all fixups (for performance testing)">;
77
78 def no_exec_stack : Flag<"--noexecstack">,
79     HelpText<"Mark the file as not needing an executable stack">;
80
81 def fatal_warnings : Flag<"--fatal-warnings">,
82     HelpText<"Consider warnings as errors">;