[llvm-commits] CVS: llvm/runtime/GCCLibraries/libexception/c++-exception.cpp c++-exception.h

Chris Lattner lattner at cs.uiuc.edu
Thu Aug 28 09:37:01 PDT 2003


Changes in directory llvm/runtime/GCCLibraries/libexception:

c++-exception.cpp updated: 1.4 -> 1.5
c++-exception.h updated: 1.4 -> 1.5

---
Log message:

New wrapper around the terminate call.


---
Diffs of the changes:

Index: llvm/runtime/GCCLibraries/libexception/c++-exception.cpp
diff -u llvm/runtime/GCCLibraries/libexception/c++-exception.cpp:1.4 llvm/runtime/GCCLibraries/libexception/c++-exception.cpp:1.5
--- llvm/runtime/GCCLibraries/libexception/c++-exception.cpp:1.4	Wed Aug 27 18:00:11 2003
+++ llvm/runtime/GCCLibraries/libexception/c++-exception.cpp	Thu Aug 28 09:35:52 2003
@@ -214,6 +214,10 @@
     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


Index: llvm/runtime/GCCLibraries/libexception/c++-exception.h
diff -u llvm/runtime/GCCLibraries/libexception/c++-exception.h:1.4 llvm/runtime/GCCLibraries/libexception/c++-exception.h:1.5
--- llvm/runtime/GCCLibraries/libexception/c++-exception.h:1.4	Wed Aug 27 17:59:15 2003
+++ llvm/runtime/GCCLibraries/libexception/c++-exception.h	Thu Aug 28 09:35:52 2003
@@ -69,6 +69,7 @@
   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();





More information about the llvm-commits mailing list