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 c385bf3 commit 4c7038eCopy full SHA for 4c7038e
llvm/lib/TextAPI/Platform.cpp
@@ -49,7 +49,11 @@ 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::DriverKit:
53
+ return PLATFORM_DRIVERKIT;
54
+ case Triple::XROS:
55
+ return Target.isSimulatorEnvironment() ? PLATFORM_XROS_SIMULATOR
56
+ : PLATFORM_XROS;
57
}
58
59
0 commit comments