[llvm] cba508f - [TextAPI] Reformat llvm_unreachable message

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Tue May 11 09:59:57 PDT 2021


Author: Sam Powell
Date: 2021-05-11T09:59:26-07:00
New Revision: cba508fb678798094a4fd668ce6bf4225fc73509

URL: https://github.com/llvm/llvm-project/commit/cba508fb678798094a4fd668ce6bf4225fc73509
DIFF: https://github.com/llvm/llvm-project/commit/cba508fb678798094a4fd668ce6bf4225fc73509.diff

LOG: [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

Added: 
    

Modified: 
    llvm/lib/TextAPI/Platform.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/TextAPI/Platform.cpp b/llvm/lib/TextAPI/Platform.cpp
index 2e6b8852cd6fc..038ad9d4e0e07 100644
--- a/llvm/lib/TextAPI/Platform.cpp
+++ b/llvm/lib/TextAPI/Platform.cpp
@@ -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) {


        


More information about the llvm-commits mailing list