summaryrefslogtreecommitdiff
path: root/src/cxa_exception.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-01-28 00:34:46 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-01-28 00:34:46 +0000
commit978bfdea305b62e4de913a8532657ebf977ab03f (patch)
tree44e1ed65a7d9d6b26abd0b432d1f16dec291787f /src/cxa_exception.cpp
parenta4d69a35ba389303a702621b7b6cb186a7af93c9 (diff)
Minor updates to a couple of comments.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@149158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/cxa_exception.cpp')
-rw-r--r--src/cxa_exception.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cxa_exception.cpp b/src/cxa_exception.cpp
index c9dd1d1..3f516c5 100644
--- a/src/cxa_exception.cpp
+++ b/src/cxa_exception.cpp
@@ -238,7 +238,8 @@ __cxa_throw(void* thrown_object, std::type_info* tinfo, void (*dest)(void*))
#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 @@ extern LIBCXXABI_NORETURN void __cxa_rethrow() {
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;