[llvm-branch-commits] [llvm-branch] r101513 - in /llvm/branches/Apple/Morbo: include/llvm/Support/ErrorHandling.h lib/Support/ErrorHandling.cpp

Daniel Dunbar daniel at zuster.org
Fri Apr 16 11:33:51 PDT 2010


Author: ddunbar
Date: Fri Apr 16 13:33:50 2010
New Revision: 101513

URL: http://llvm.org/viewvc/llvm-project?rev=101513&view=rev
Log:
Add llvm::report_fatal_error alias for llvm_report_error, for compatibility with
upstream.

Modified:
    llvm/branches/Apple/Morbo/include/llvm/Support/ErrorHandling.h
    llvm/branches/Apple/Morbo/lib/Support/ErrorHandling.cpp

Modified: llvm/branches/Apple/Morbo/include/llvm/Support/ErrorHandling.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Morbo/include/llvm/Support/ErrorHandling.h?rev=101513&r1=101512&r2=101513&view=diff
==============================================================================
--- llvm/branches/Apple/Morbo/include/llvm/Support/ErrorHandling.h (original)
+++ llvm/branches/Apple/Morbo/include/llvm/Support/ErrorHandling.h Fri Apr 16 13:33:50 2010
@@ -64,6 +64,10 @@
   NORETURN void llvm_report_error(const std::string &reason);
   NORETURN void llvm_report_error(const Twine &reason);
 
+  NORETURN void report_fatal_error(const char *reason);
+  NORETURN void report_fatal_error(const std::string &reason);
+  NORETURN void report_fatal_error(const Twine &reason);
+
   /// This function calls abort(), and prints the optional message to stderr.
   /// Use the llvm_unreachable macro (that adds location info), instead of
   /// calling this function directly.

Modified: llvm/branches/Apple/Morbo/lib/Support/ErrorHandling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Morbo/lib/Support/ErrorHandling.cpp?rev=101513&r1=101512&r2=101513&view=diff
==============================================================================
--- llvm/branches/Apple/Morbo/lib/Support/ErrorHandling.cpp (original)
+++ llvm/branches/Apple/Morbo/lib/Support/ErrorHandling.cpp Fri Apr 16 13:33:50 2010
@@ -57,6 +57,16 @@
   exit(1);
 }
 
+void report_fatal_error(const char *reason) {
+  llvm_report_error(reason);
+}
+void report_fatal_error(const std::string &reason) {
+  llvm_report_error(reason);
+}
+void report_fatal_error(const Twine &reason) {
+  llvm_report_error(reason);
+}
+
 void llvm_unreachable_internal(const char *msg, const char *file, 
                                unsigned line) {
   // This code intentionally doesn't call the ErrorHandler callback, because





More information about the llvm-branch-commits mailing list