LLVM  10.0.0svn
Platform.h
Go to the documentation of this file.
1 //===- llvm/TextAPI/MachO/Platform.h - Platform -----------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Defines the Platforms supported by Tapi and helpers.
10 //
11 //===----------------------------------------------------------------------===//
12 #ifndef LLVM_TEXTAPI_MACHO_PLATFORM_H
13 #define LLVM_TEXTAPI_MACHO_PLATFORM_H
14 
15 #include "llvm/ADT/SmallSet.h"
17 
18 namespace llvm {
19 namespace MachO {
20 
21 /// Defines the list of MachO platforms.
22 enum class PlatformKind : unsigned {
23  unknown,
33 };
34 
36 
37 PlatformKind mapToPlatformKind(PlatformKind Platform, bool WantSim);
41 
42 } // end namespace MachO.
43 } // end namespace llvm.
44 
45 #endif // LLVM_TEXTAPI_MACHO_PLATFORM_H
PlatformKind
Defines the list of MachO platforms.
Definition: Platform.h:22
This class represents lattice values for constants.
Definition: AllocatorList.h:23
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition: APInt.h:32
StringRef getPlatformName(PlatformKind Platform)
Definition: Platform.cpp:64
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
Definition: SmallSet.h:134
PlatformKind mapToPlatformKind(PlatformKind Platform, bool WantSim)
Definition: Platform.cpp:20
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:43
PlatformSet mapToPlatformSet(ArrayRef< Triple > Targets)
Definition: Platform.cpp:57
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:48