summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/GCCLibraries/crtend/Exception.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-16 23:17:27 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-16 23:17:27 +0000
commit3f97d03f862e1debfedfda4e6dd5ed7bb4ee8c4c (patch)
tree83dcd162f585ea723252fa1ec7ed4fae49828948 /llvm/runtime/GCCLibraries/crtend/Exception.h
parent48850c10c0278cb335aa2158166241923705ad6c (diff)
downloadbcm5719-llvm-3f97d03f862e1debfedfda4e6dd5ed7bb4ee8c4c.tar.gz
bcm5719-llvm-3f97d03f862e1debfedfda4e6dd5ed7bb4ee8c4c.zip
In LLVM 2.0 we won't use the runtime libraries as llvm-gcc3 support will
be dropped. This patch pertains to removing the runtime directory from LLVM. llvm-svn: 31793
Diffstat (limited to 'llvm/runtime/GCCLibraries/crtend/Exception.h')
-rw-r--r--llvm/runtime/GCCLibraries/crtend/Exception.h71
1 files changed, 0 insertions, 71 deletions
diff --git a/llvm/runtime/GCCLibraries/crtend/Exception.h b/llvm/runtime/GCCLibraries/crtend/Exception.h
deleted file mode 100644
index dc4d3a5f2ce..00000000000
--- a/llvm/runtime/GCCLibraries/crtend/Exception.h
+++ /dev/null
@@ -1,71 +0,0 @@
-//===- Exception.h - Generic language-independent exceptions ----*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file defines the the shared data structures used by all language
-// specific exception handling runtime libraries.
-//
-// NOTE NOTE NOTE: A copy of this file lives in llvmgcc/libstdc++-v3/libsupc++/
-// Any modifications to this file must keep it in sync!
-//
-//===----------------------------------------------------------------------===//
-
-#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
OpenPOWER on IntegriCloud