]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/clang/Basic/TargetOptions.h
Vendor import of clang release_32 branch r168974 (effectively, 3.2 RC2):
[FreeBSD/FreeBSD.git] / 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_FRONTEND_TARGETOPTIONS_H
16 #define LLVM_CLANG_FRONTEND_TARGETOPTIONS_H
17
18 #include "llvm/ADT/IntrusiveRefCntPtr.h"
19 #include <string>
20 #include <vector>
21
22 namespace clang {
23
24 /// \brief Options for controlling the target.
25 class TargetOptions : public RefCountedBase<TargetOptions> {
26 public:
27   /// If given, the name of the target triple to compile for. If not given the
28   /// target will be selected to match the host.
29   std::string Triple;
30
31   /// If given, the name of the target CPU to generate code for.
32   std::string CPU;
33
34   /// If given, the name of the target ABI to use.
35   std::string ABI;
36
37   /// If given, the name of the target C++ ABI to use. If not given, defaults
38   /// to "itanium".
39   std::string CXXABI;
40
41   /// If given, the version string of the linker in use.
42   std::string LinkerVersion;
43
44   /// \brief The list of target specific features to enable or disable, as written on the command line.
45   std::vector<std::string> FeaturesAsWritten;
46
47   /// The list of target specific features to enable or disable -- this should
48   /// be a list of strings starting with by '+' or '-'.
49   std::vector<std::string> Features;
50 };
51
52 }  // end namespace clang
53
54 #endif