Fix comment.
authorTorok Edwin <edwintorok@gmail.com>
Sat, 11 Jul 2009 20:13:58 +0000 (20:13 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Sat, 11 Jul 2009 20:13:58 +0000 (20:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75380 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/ErrorHandling.h

index 1a401eb7c0df26b029cb48d70760b2995a9e001a..d9938a1483db1047e17566c8b877c6e7d18eded1 100644 (file)
@@ -41,11 +41,12 @@ namespace llvm {
 
   /// Reports a serious error, calling any installed error handler.
   /// If no error handler is installed the default is to print the message to
+  /// standard error, followed by a newline.
   void llvm_report_error(const std::string &reason) NORETURN;
 
-  /// This function calls abort().
-  /// Call this after assert(0), so that compiler knows the path is not
-  /// reachable.
+  /// This function calls abort(), and prints the optional message to stderr.
+  /// Call this instead of assert(0), so that compiler knows the path is not
+  /// reachable even for NDEBUG builds.
   void llvm_unreachable(const char *msg=0) NORETURN;
 }