Skip to content

Commit 4c7038e

Browse files
authored
[TextAPI] add missing platforms for translating triples to tapi targets (#8337)
1 parent c385bf3 commit 4c7038e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/lib/TextAPI/Platform.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ 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::DriverKit:
53+
return PLATFORM_DRIVERKIT;
54+
case Triple::XROS:
55+
return Target.isSimulatorEnvironment() ? PLATFORM_XROS_SIMULATOR
56+
: PLATFORM_XROS;
5357
}
5458
}
5559

0 commit comments

Comments
 (0)