diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-28 19:58:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-28 19:58:51 +0000 |
commit | b40d5e7d940d469e2a5c984a390b10d65e67e689 (patch) | |
tree | 139cbb3535eddc2245c7e713120a48ea9f2ae583 /runtime/GCCLibraries/libexception/Exception.h | |
parent | 902d580bd9e594d1d8fe2df05513123ac0f0f45d (diff) |
* Add proper support for rethrown exceptions.
* Make catch_begin() produce a pointer that must be passed to catch_end()
* Eliminate the caught exception stack.
* Add optional debugging code that may be turned on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/GCCLibraries/libexception/Exception.h')
-rw-r--r-- | runtime/GCCLibraries/libexception/Exception.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/GCCLibraries/libexception/Exception.h b/runtime/GCCLibraries/libexception/Exception.h index 4d886cd920..a348999174 100644 --- a/runtime/GCCLibraries/libexception/Exception.h +++ b/runtime/GCCLibraries/libexception/Exception.h @@ -31,6 +31,14 @@ struct llvm_exception { // falls to zero, the exception is destroyed. // unsigned HandlerCount; + + // isRethrown - This field is set on an exception if it has been 'throw;'n. + // This is needed because the exception might exit through a number of the + // end_catch statements matching the number of begin_catch statements that + // have been processed. When this happens, the exception should become + // uncaught, not dead. + // + int isRethrown; }; enum { |