[PATCH] D102250: [TextAPI] Reformat llvm_unreachable message

Sam Powell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 11 09:19:32 PDT 2021


spowell created this revision.
spowell added reviewers: cishida, ributzka, steven_wu, zixuw.
Herald added a subscriber: hiraditya.
spowell requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102250

Files:
  llvm/lib/TextAPI/Platform.cpp


Index: llvm/lib/TextAPI/Platform.cpp
===================================================================
--- llvm/lib/TextAPI/Platform.cpp
+++ llvm/lib/TextAPI/Platform.cpp
@@ -29,7 +29,7 @@
   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 @@
   case PlatformKind::driverKit:
     return "DriverKit";
   }
-  llvm_unreachable("Unknown llvm.MachO.PlatformKind enum");
+  llvm_unreachable("Unknown llvm::MachO::PlatformKind enum");
 }
 
 PlatformKind getPlatformFromName(StringRef Name) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102250.344430.patch
Type: text/x-patch
Size: 752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210511/2dad02da/attachment.bin>


More information about the llvm-commits mailing list