[llvm-commits] [llvm] r75380 - /llvm/trunk/include/llvm/Support/ErrorHandling.h

Torok Edwin edwintorok at gmail.com
Sat Jul 11 13:13:59 PDT 2009


Author: edwin
Date: Sat Jul 11 15:13:58 2009
New Revision: 75380

URL: http://llvm.org/viewvc/llvm-project?rev=75380&view=rev
Log:
Fix comment.

Modified:
    llvm/trunk/include/llvm/Support/ErrorHandling.h

Modified: llvm/trunk/include/llvm/Support/ErrorHandling.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ErrorHandling.h?rev=75380&r1=75379&r2=75380&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/ErrorHandling.h (original)
+++ llvm/trunk/include/llvm/Support/ErrorHandling.h Sat Jul 11 15:13:58 2009
@@ -41,11 +41,12 @@
 
   /// 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;
 }
 





More information about the llvm-commits mailing list