Add xrOS to silence -Wswitch violations (#71432)

To commit the necessary llvm-project changes to land xrOS support,  xrOS as a triple must be understood to swift. Add minimal support such that CI passes.
This commit is contained in:
Cyndy Ishida
2024-02-07 21:19:40 -08:00
committed by GitHub
parent 1adfb7a6a1
commit 9e2b97c0fd

View File

@@ -180,6 +180,7 @@ StringRef swift::getPlatformNameForTriple(const llvm::Triple &triple) {
case llvm::Triple::CloudABI:
case llvm::Triple::DragonFly:
case llvm::Triple::DriverKit:
case llvm::Triple::XROS:
case llvm::Triple::Emscripten:
case llvm::Triple::Fuchsia:
case llvm::Triple::KFreeBSD: