aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-28 14:35:52 +0000
committerChris Lattner <sabre@nondot.org>2003-08-28 14:35:52 +0000
commit37459033f9784d0ec6f5fda0b5409a233c6f86a9 (patch)
treedec79452d9fc16b448b40ee4a1d86a7564ef442d /runtime
parentf4b319d3561aba171a83cd7051d27f347da90a26 (diff)
downloadexternal_llvm-37459033f9784d0ec6f5fda0b5409a233c6f86a9.zip
external_llvm-37459033f9784d0ec6f5fda0b5409a233c6f86a9.tar.gz
external_llvm-37459033f9784d0ec6f5fda0b5409a233c6f86a9.tar.bz2
New wrapper around the terminate call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r--runtime/GCCLibraries/crtend/C++-Exception.cpp4
-rw-r--r--runtime/GCCLibraries/crtend/C++-Exception.h1
-rw-r--r--runtime/GCCLibraries/libexception/C++-Exception.cpp4
-rw-r--r--runtime/GCCLibraries/libexception/C++-Exception.h1
4 files changed, 10 insertions, 0 deletions
diff --git a/runtime/GCCLibraries/crtend/C++-Exception.cpp b/runtime/GCCLibraries/crtend/C++-Exception.cpp
index 01a72d0..5e58930 100644
--- a/runtime/GCCLibraries/crtend/C++-Exception.cpp
+++ b/runtime/GCCLibraries/crtend/C++-Exception.cpp
@@ -214,6 +214,10 @@ void __llvm_cxxeh_end_catch() /* might throw */ {
E->ExceptionDestructor(E); // Release memory for the exception
}
+void __llvm_cxxeh_call_terminate() throw() {
+ __terminate(__terminate_handler);
+}
+
// __llvm_cxxeh_rethrow - This function turns the top-level caught exception
// into an uncaught exception, in preparation for an llvm.unwind, which should
diff --git a/runtime/GCCLibraries/crtend/C++-Exception.h b/runtime/GCCLibraries/crtend/C++-Exception.h
index 81a7639..30d40aa 100644
--- a/runtime/GCCLibraries/crtend/C++-Exception.h
+++ b/runtime/GCCLibraries/crtend/C++-Exception.h
@@ -69,6 +69,7 @@ extern "C" {
void __llvm_cxxeh_throw(void *ObjectPtr, void *TypeInfoPtr,
void (*DtorPtr)(void*)) throw();
+ void __llvm_cxxeh_call_terminate() throw() __attribute__((noreturn));
void * __llvm_cxxeh_current_uncaught_exception_isa(void *Ty)
throw();
void *__llvm_cxxeh_begin_catch() throw();
diff --git a/runtime/GCCLibraries/libexception/C++-Exception.cpp b/runtime/GCCLibraries/libexception/C++-Exception.cpp
index 01a72d0..5e58930 100644
--- a/runtime/GCCLibraries/libexception/C++-Exception.cpp
+++ b/runtime/GCCLibraries/libexception/C++-Exception.cpp
@@ -214,6 +214,10 @@ void __llvm_cxxeh_end_catch() /* might throw */ {
E->ExceptionDestructor(E); // Release memory for the exception
}
+void __llvm_cxxeh_call_terminate() throw() {
+ __terminate(__terminate_handler);
+}
+
// __llvm_cxxeh_rethrow - This function turns the top-level caught exception
// into an uncaught exception, in preparation for an llvm.unwind, which should
diff --git a/runtime/GCCLibraries/libexception/C++-Exception.h b/runtime/GCCLibraries/libexception/C++-Exception.h
index 81a7639..30d40aa 100644
--- a/runtime/GCCLibraries/libexception/C++-Exception.h
+++ b/runtime/GCCLibraries/libexception/C++-Exception.h
@@ -69,6 +69,7 @@ extern "C" {
void __llvm_cxxeh_throw(void *ObjectPtr, void *TypeInfoPtr,
void (*DtorPtr)(void*)) throw();
+ void __llvm_cxxeh_call_terminate() throw() __attribute__((noreturn));
void * __llvm_cxxeh_current_uncaught_exception_isa(void *Ty)
throw();
void *__llvm_cxxeh_begin_catch() throw();