diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-01-30 20:13:37 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-01-30 20:13:37 +0000 |
commit | 723ef221e08a1f60cd6b85bed883b351f5397f42 (patch) | |
tree | 2e6c76d989f655c96bf951680d0e5d1b09c90ee2 /src/cxa_exception.cpp | |
parent | 7da9b96afc66c4496eb8809897c1b707b574a5c4 (diff) |
Removed debugging print statements
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@149271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/cxa_exception.cpp')
-rw-r--r-- | src/cxa_exception.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/cxa_exception.cpp b/src/cxa_exception.cpp index 2035fae..0bc8f2b 100644 --- a/src/cxa_exception.cpp +++ b/src/cxa_exception.cpp @@ -21,8 +21,6 @@ #include "cxa_exception.hpp" #include "cxa_handlers.hpp" -#include <stdio.h> - // +---------------------------+-----------------------------+---------------+ // | __cxa_exception | _Unwind_Exception CLNGC++\0 | thrown object | // +---------------------------+-----------------------------+---------------+ @@ -297,7 +295,6 @@ to terminate or unexpected during unwinding. void* __cxa_begin_catch(void* unwind_arg) throw() { -printf("entering __cxa_begin_catch\n"); _Unwind_Exception* unwind_exception = static_cast<_Unwind_Exception*>(unwind_arg); bool native_exception = isOurExceptionClass(unwind_exception); __cxa_eh_globals* globals = __cxa_get_globals(); @@ -322,7 +319,6 @@ printf("entering __cxa_begin_catch\n"); globals->caughtExceptions = exception_header; } globals->uncaughtExceptions -= 1; // Not atomically, since globals are thread-local -printf("leaving __cxa_begin_catch\n"); return exception_header->adjustedPtr; } // Else this is a foreign exception @@ -355,7 +351,6 @@ For a foreign exception: */ void __cxa_end_catch() { -printf("entering __cxa_end_catch\n"); static_assert(sizeof(__cxa_exception) == sizeof(__cxa_dependent_exception), "sizeof(__cxa_exception) must be equal to sizeof(__cxa_dependent_exception)"); __cxa_eh_globals* globals = __cxa_get_globals_fast(); // __cxa_get_globals called in __cxa_begin_catch @@ -417,7 +412,6 @@ printf("entering __cxa_end_catch\n"); globals->caughtExceptions = 0; } } -printf("leaving __cxa_end_catch\n"); } // Note: exception_header may be masquerading as a __cxa_dependent_exception @@ -453,14 +447,12 @@ void __cxa_rethrow() { __cxa_eh_globals* globals = __cxa_get_globals(); -//printf("entering __cxa_rethrow\n"); __cxa_exception* exception_header = globals->caughtExceptions; if (NULL == exception_header) std::terminate(); // throw; called outside of a exception handler bool native_exception = isOurExceptionClass(&exception_header->unwindHeader); if (native_exception) { -//printf("__cxa_rethrow native branch\n"); // Mark the exception as being rethrown (reverse the effects of __cxa_begin_catch) exception_header->handlerCount = -exception_header->handlerCount; globals->uncaughtExceptions += 1; @@ -474,7 +466,6 @@ __cxa_rethrow() // nothing globals->caughtExceptions = 0; } -//printf("leaving __cxa_rethrow, private_1 = %lu\n", exception_header->unwindHeader.private_1); #if __arm__ (void) _Unwind_SjLj_Resume_or_Rethrow(&exception_header->unwindHeader); #else |