]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/clang/include/clang/Basic/TargetOptions.h
Upgrade to Unbound 1.5.9.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / clang / include / clang / Basic / TargetOptions.h
1 //===--- TargetOptions.h ----------------------------------------*- C++ -*-===//
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 /// \file
11 /// \brief Defines the clang::TargetOptions class.
12 ///
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_CLANG_BASIC_TARGETOPTIONS_H
16 #define LLVM_CLANG_BASIC_TARGETOPTIONS_H
17
18 #include <string>
19 #include <vector>
20
21 namespace clang {
22
23 /// \brief Options for controlling the target.
24 class TargetOptions {
25 public:
26   /// If given, the name of the target triple to compile for. If not given the
27   /// target will be selected to match the host.
28   std::string Triple;
29
30   /// If given, the name of the target CPU to generate code for.
31   std::string CPU;
32
33   /// If given, the unit to use for floating point math.
34   std::string FPMath;
35
36   /// If given, the name of the target ABI to use.
37   std::string ABI;
38
39   /// If given, the version string of the linker in use.
40   std::string LinkerVersion;
41
42   /// \brief The list of target specific features to enable or disable, as written on the command line.
43   std::vector<std::string> FeaturesAsWritten;
44
45   /// The list of target specific features to enable or disable -- this should
46   /// be a list of strings starting with by '+' or '-'.
47   std::vector<std::string> Features;
48   
49   std::vector<std::string> Reciprocals;
50 };
51
52 }  // end namespace clang
53
54 #endif