Lines Matching +full:platform +full:- +full:name
1 //===- llvm/TextAPI/Platform.cpp - Platform ---------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Implementations of Platform Helper functions.
11 //===----------------------------------------------------------------------===//
13 #include "llvm/TextAPI/Platform.h"
21 PlatformType mapToPlatformType(PlatformType Platform, bool WantSim) { in mapToPlatformType() argument
22 switch (Platform) { in mapToPlatformType()
24 return Platform; in mapToPlatformType()
69 StringRef getPlatformName(PlatformType Platform) { in getPlatformName() argument
70 switch (Platform) { in getPlatformName()
71 #define PLATFORM(platform, id, name, build_name, target, tapi_target, \ in getPlatformName() macro
73 case PLATFORM_##platform: \ in getPlatformName()
80 PlatformType getPlatformFromName(StringRef Name) { in getPlatformFromName() argument
81 return StringSwitch<PlatformType>(Name) in getPlatformFromName()
83 #define PLATFORM(platform, id, name, build_name, target, tapi_target, \ in getPlatformFromName() macro
85 .Case(#target, PLATFORM_##platform) in getPlatformFromName()
90 std::string getOSAndEnvironmentName(PlatformType Platform, in getOSAndEnvironmentName() argument
92 switch (Platform) { in getOSAndEnvironmentName()
106 return "ios" + Version + "-macabi"; in getOSAndEnvironmentName()
108 return "ios" + Version + "-simulator"; in getOSAndEnvironmentName()
110 return "tvos" + Version + "-simulator"; in getOSAndEnvironmentName()
112 return "watchos" + Version + "-simulator"; in getOSAndEnvironmentName()
118 return "xros" + Version + "-simulator"; in getOSAndEnvironmentName()