1 //===--- TargetOptions.h ----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief Defines the clang::TargetOptions class.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CLANG_FRONTEND_TARGETOPTIONS_H
16 #define LLVM_CLANG_FRONTEND_TARGETOPTIONS_H
18 #include "llvm/ADT/IntrusiveRefCntPtr.h"
24 /// \brief Options for controlling the target.
25 class TargetOptions : public RefCountedBase<TargetOptions> {
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.
31 /// If given, the name of the target CPU to generate code for.
34 /// If given, the name of the target ABI to use.
37 /// If given, the name of the target C++ ABI to use. If not given, defaults
41 /// If given, the version string of the linker in use.
42 std::string LinkerVersion;
44 /// \brief The list of target specific features to enable or disable, as written on the command line.
45 std::vector<std::string> FeaturesAsWritten;
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;
52 } // end namespace clang