[cfe-commits] [libcxxabi] r149158 - /libcxxabi/trunk/src/cxa_exception.cpp

Howard Hinnant hhinnant at apple.com
Fri Jan 27 16:34:46 PST 2012


Author: hhinnant
Date: Fri Jan 27 18:34:46 2012
New Revision: 149158

URL: http://llvm.org/viewvc/llvm-project?rev=149158&view=rev
Log:
Minor updates to a couple of comments.

Modified:
    libcxxabi/trunk/src/cxa_exception.cpp

Modified: libcxxabi/trunk/src/cxa_exception.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_exception.cpp?rev=149158&r1=149157&r2=149158&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_exception.cpp (original)
+++ libcxxabi/trunk/src/cxa_exception.cpp Fri Jan 27 18:34:46 2012
@@ -238,7 +238,8 @@
 #else
     _Unwind_RaiseException(&exception_header->unwindHeader);
 #endif
-//  If we get here, some kind of unwinding error has occurred.
+    //  This only happens when there is no handler, or some unexpected unwinding
+    //     error happens.
     failed_throw(exception_header);
 }
 
@@ -375,6 +376,7 @@
         std::terminate ();
 
 // TODO:  Handle foreign exceptions?  How?
+//        Rethrow the foreign exception without touching anything!
 
 //  Mark the exception as being rethrown (reverse the effects of __cxa_begin_catch)
     exception_header->handlerCount = -exception_header->handlerCount;





More information about the cfe-commits mailing list