aboutsummaryrefslogtreecommitdiff
path: root/runtime/GCCLibraries/libexception/Exception.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-15 15:07:22 +0000
committerChris Lattner <sabre@nondot.org>2003-09-15 15:07:22 +0000
commit6d4e4f85ddd0db366fd39c45d5044a46d8e26859 (patch)
tree1b6b43be6628b81dcaafd18b8b8ccdc3a7a05440 /runtime/GCCLibraries/libexception/Exception.h
parent22c83280584a63548563bb88db3b536c157d41cf (diff)
Remove dead library, it is now folded into crtend
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/GCCLibraries/libexception/Exception.h')
-rw-r--r--runtime/GCCLibraries/libexception/Exception.h61
1 files changed, 0 insertions, 61 deletions
diff --git a/runtime/GCCLibraries/libexception/Exception.h b/runtime/GCCLibraries/libexception/Exception.h
deleted file mode 100644
index d3f95e77b0..0000000000
--- a/runtime/GCCLibraries/libexception/Exception.h
+++ /dev/null
@@ -1,61 +0,0 @@
-//===- Exception.h - Generic language-independent exceptions ----*- C++ -*-===//
-//
-// This file defines the the shared data structures used by all language
-// specific exception handling runtime libraries.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef EXCEPTION_H
-#define EXCEPTION_H
-
-struct llvm_exception {
- // ExceptionDestructor - This call-back function is used to destroy the
- // current exception, without requiring the caller to know what the concrete
- // exception type is.
- //
- void (*ExceptionDestructor)(llvm_exception *);
-
- // ExceptionType - This field identifies what runtime library this exception
- // came from. Currently defined values are:
- // 0 - Error
- // 1 - longjmp exception (see longjmp-exception.c)
- // 2 - C++ exception (see c++-exception.c)
- //
- unsigned ExceptionType;
-
- // Next - This points to the next exception in the current stack.
- llvm_exception *Next;
-
- // HandlerCount - This is a count of the number of handlers which have
- // currently caught this exception. If the handler is caught and this number
- // 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 {
- ErrorException = 0,
- SJLJException = 1,
- CXXException = 2,
-};
-
-// Language independent exception handling API...
-//
-extern "C" {
- bool __llvm_eh_has_uncaught_exception() throw();
- void *__llvm_eh_current_uncaught_exception_type(unsigned HandlerType) throw();
- void __llvm_eh_add_uncaught_exception(llvm_exception *E) throw();
-
- llvm_exception *__llvm_eh_get_uncaught_exception() throw();
- llvm_exception *__llvm_eh_pop_from_uncaught_stack() throw();
-}
-
-#endif