Skip to content

Commit 06fea93

Browse files
committed
[TextAPI] add missing platforms for translating triples to tapi targets
1 parent 643b31d commit 06fea93

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

llvm/lib/TextAPI/Platform.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ PlatformType mapToPlatformType(const Triple &Target) {
4949
case Triple::WatchOS:
5050
return Target.isSimulatorEnvironment() ? PLATFORM_WATCHOSSIMULATOR
5151
: PLATFORM_WATCHOS;
52-
// TODO: add bridgeOS & driverKit once in llvm::Triple
52+
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;
5359
}
5460
}
5561

0 commit comments

Comments
 (0)