Lines Matching refs:Platform
943 // If the target isn't initialized (e.g., an unknown Darwin platform, return
1062 // Mash in the platform.
1151 llvm_unreachable("Unsupported platform");
1180 llvm_unreachable("Unsupported platform");
1393 DarwinPlatformKind getPlatform() const { return Platform; }
1427 switch (Platform) {
1478 static DarwinPlatform createOSVersionArg(DarwinPlatformKind Platform,
1480 return DarwinPlatform(OSVersionArg, Platform, A);
1482 static DarwinPlatform createDeploymentTargetEnv(DarwinPlatformKind Platform,
1485 DarwinPlatform Result(DeploymentTargetEnv, Platform, Value);
1489 static DarwinPlatform createFromSDK(DarwinPlatformKind Platform,
1492 DarwinPlatform Result(InferredFromSDK, Platform, Value);
1505 /// the platform from the SDKPath.
1516 DarwinPlatform(SourceKind Kind, DarwinPlatformKind Platform, Arg *Argument)
1517 : Kind(Kind), Platform(Platform), Argument(Argument) {}
1518 DarwinPlatform(SourceKind Kind, DarwinPlatformKind Platform, StringRef Value,
1520 : Kind(Kind), Platform(Platform), OSVersion(Value), Argument(Argument) {}
1539 DarwinPlatformKind Platform;
1602 "Missing platform");
1609 // default platform.
1621 // Don't allow conflicts in any other platform.
1702 // The SDK can be an SDK variant with a name like `<prefix>.<platform>`.
1890 // If no OS targets have been specified, try to guess platform from -target
1899 DarwinPlatformKind Platform = OSTarget->getPlatform();
1904 if (Platform == MacOS) {
1910 } else if (Platform == IPhoneOS) {
1931 } else if (Platform == TvOS) {
1937 } else if (Platform == WatchOS) {
1944 llvm_unreachable("unknown kind of Darwin platform");
1948 if (Environment == NativeEnvironment && Platform != MacOS &&
1952 setTarget(Platform, Environment, Major, Minor, Micro);
2637 static const char *getPlatformName(Darwin::DarwinPlatformKind Platform,
2639 switch (Platform) {
2653 llvm_unreachable("invalid platform");
2658 // -platform_version <platform> <target_version> <sdk_version>