We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 643b31d commit 06fea93Copy full SHA for 06fea93
llvm/lib/TextAPI/Platform.cpp
@@ -49,7 +49,13 @@ PlatformType mapToPlatformType(const Triple &Target) {
49
case Triple::WatchOS:
50
return Target.isSimulatorEnvironment() ? PLATFORM_WATCHOSSIMULATOR
51
: PLATFORM_WATCHOS;
52
- // TODO: add bridgeOS & driverKit once in llvm::Triple
+ case Triple::BridgeOS:
53
+ return PLATFORM_BRIDGEOS;
54
+ case Triple::DriverKit:
55
+ return PLATFORM_DRIVERKIT;
56
+ case Triple::XROS:
57
+ return Target.isSimulatorEnvironment() ? PLATFORM_XROS_SIMULATOR
58
+ : PLATFORM_XROS;
59
}
60
61
0 commit comments