1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[TextAPI] Reformat llvm_unreachable message

Change llvm_unreachable message from "Unknown llvm.MachO.PlatformKind
enum" to "Unknown llvm::MachO::PlatformKind enum".

Differential revision: https://reviews.llvm.org/D102250
This commit is contained in:
Sam Powell 2021-05-11 09:57:52 -07:00 committed by Jonas Devlieghere
parent 0403b73f90
commit 948b51f8f8

View File

@ -29,7 +29,7 @@ PlatformKind mapToPlatformKind(PlatformKind Platform, bool WantSim) {
case PlatformKind::watchOS:
return WantSim ? PlatformKind::watchOSSimulator : PlatformKind::watchOS;
}
llvm_unreachable("Unknown llvm.MachO.PlatformKind enum");
llvm_unreachable("Unknown llvm::MachO::PlatformKind enum");
}
PlatformKind mapToPlatformKind(const Triple &Target) {
@ -87,7 +87,7 @@ StringRef getPlatformName(PlatformKind Platform) {
case PlatformKind::driverKit:
return "DriverKit";
}
llvm_unreachable("Unknown llvm.MachO.PlatformKind enum");
llvm_unreachable("Unknown llvm::MachO::PlatformKind enum");
}
PlatformKind getPlatformFromName(StringRef Name) {