Add new OS platforms

LLVM added UEFI and LiteOS platforms. We don't currently support them,
so we should crash on the unsupported OS for now to avoid accidents
later.
This commit is contained in:
Evan Wilde
2023-07-17 10:45:57 -07:00
parent 88cad7a6a3
commit 2c216e08eb

View File

@@ -234,6 +234,9 @@ StringRef swift::getPlatformNameForTriple(const llvm::Triple &triple) {
return "wasi";
case llvm::Triple::UnknownOS:
return "none";
case llvm::Triple::UEFI:
case llvm::Triple::LiteOS:
llvm_unreachable("unsupported OS");
}
llvm_unreachable("unsupported OS");
}