summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/GCCLibraries/crtend/Exception.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-23 19:34:09 +0000
committerChris Lattner <sabre@nondot.org>2007-02-23 19:34:09 +0000
commitd3c36c964139be1fd843300b50fff7466596a0b9 (patch)
tree2a693058d8f69987759a1f5adcecbfbda7f37c9c /llvm/runtime/GCCLibraries/crtend/Exception.cpp
parentb1fcb9ae1555988ae716efc7b43dfefff0db4c2a (diff)
downloadbcm5719-llvm-d3c36c964139be1fd843300b50fff7466596a0b9.tar.gz
bcm5719-llvm-d3c36c964139be1fd843300b50fff7466596a0b9.zip
crtend is only for llvm-gcc3, remove it.
llvm-svn: 34529
Diffstat (limited to 'llvm/runtime/GCCLibraries/crtend/Exception.cpp')
-rw-r--r--llvm/runtime/GCCLibraries/crtend/Exception.cpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/llvm/runtime/GCCLibraries/crtend/Exception.cpp b/llvm/runtime/GCCLibraries/crtend/Exception.cpp
deleted file mode 100644
index d4ac290122d..00000000000
--- a/llvm/runtime/GCCLibraries/crtend/Exception.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-//===- Exception.cpp - Generic language-independent exceptions ------------===//
-//
-// This file defines the the shared data structures used by all language
-// specific exception handling runtime libraries.
-//
-//===----------------------------------------------------------------------===//
-
-#include "Exception.h"
-
-// Thread local state for exception handling. FIXME: This should really be made
-// thread-local!
-
-// UncaughtExceptionStack - The stack of exceptions currently being thrown.
-static llvm_exception *UncaughtExceptionStack = 0;
-
-// __llvm_eh_has_uncaught_exception - This is used to implement
-// std::uncaught_exception.
-//
-bool __llvm_eh_has_uncaught_exception() throw() {
- return UncaughtExceptionStack != 0;
-}
-
-// __llvm_eh_current_uncaught_exception - This function checks to see if the
-// current uncaught exception is of the specified language type. If so, it
-// returns a pointer to the exception area data.
-//
-void *__llvm_eh_current_uncaught_exception_type(unsigned HandlerType) throw() {
- if (UncaughtExceptionStack->ExceptionType == HandlerType)
- return UncaughtExceptionStack+1;
- return 0;
-}
-
-// __llvm_eh_add_uncaught_exception - This adds the specified exception to the
-// top of the uncaught exception stack. The exception should not already be on
-// the stack!
-void __llvm_eh_add_uncaught_exception(llvm_exception *E) throw() {
- E->Next = UncaughtExceptionStack;
- UncaughtExceptionStack = E;
-}
-
-
-// __llvm_eh_get_uncaught_exception - Returns the current uncaught exception.
-// There must be an uncaught exception for this to work!
-llvm_exception *__llvm_eh_get_uncaught_exception() throw() {
- return UncaughtExceptionStack;
-}
-
-// __llvm_eh_pop_from_uncaught_stack - Remove the current uncaught exception
-// from the top of the stack.
-llvm_exception *__llvm_eh_pop_from_uncaught_stack() throw() {
- llvm_exception *E = __llvm_eh_get_uncaught_exception();
- UncaughtExceptionStack = E->Next;
- return E;
-}
OpenPOWER on IntegriCloud