diff options
Diffstat (limited to 'runtime/GCCLibraries/crtend')
-rw-r--r-- | runtime/GCCLibraries/crtend/Exception.h | 6 | ||||
-rw-r--r-- | runtime/GCCLibraries/crtend/SJLJ-Exception.cpp | 10 | ||||
-rw-r--r-- | runtime/GCCLibraries/crtend/SJLJ-Exception.h | 6 |
3 files changed, 11 insertions, 11 deletions
diff --git a/runtime/GCCLibraries/crtend/Exception.h b/runtime/GCCLibraries/crtend/Exception.h index 1e515196e8..9bda39da1d 100644 --- a/runtime/GCCLibraries/crtend/Exception.h +++ b/runtime/GCCLibraries/crtend/Exception.h @@ -1,10 +1,10 @@ //===- 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 @@ -24,7 +24,7 @@ struct llvm_exception { // exception type is. // void (*ExceptionDestructor)(llvm_exception *); - + // ExceptionType - This field identifies what runtime library this exception // came from. Currently defined values are: // 0 - Error diff --git a/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp b/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp index 86e0e3a28d..6a3e4724ae 100644 --- a/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp +++ b/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp @@ -1,10 +1,10 @@ //===- SJLJ-Exception.cpp - SetJmp/LongJmp Exception Handling -------------===// -// +// // 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 implements the API used by the Setjmp/Longjmp exception handling @@ -106,7 +106,7 @@ void __llvm_sjljeh_add_setjmp_to_map(void **SetJmpMap, void *JmpBuf, bool __llvm_sjljeh_is_longjmp_exception() throw() { return __llvm_eh_current_uncaught_exception_type(SJLJException) != 0; } - + // __llvm_sjljeh_get_longjmp_value - This function returns the value that the // setjmp call should "return". This requires that the current uncaught // exception be a sjlj exception, though it does not require the exception to be @@ -125,7 +125,7 @@ int __llvm_sjljeh_get_longjmp_value() throw() { unsigned __llvm_sjljeh_try_catching_longjmp_exception(void **SetJmpMap) throw(){ llvm_sjlj_exception *E = get_sjlj_exception(__llvm_eh_get_uncaught_exception()); - + // Scan for a matching entry in the SetJmpMap... SetJmpMapEntry *SJE = *(SetJmpMapEntry**)SetJmpMap; for (; SJE; SJE = SJE->Next) @@ -140,7 +140,7 @@ unsigned __llvm_sjljeh_try_catching_longjmp_exception(void **SetJmpMap) throw(){ // Return the setjmp ID which we should branch to... return SJE->SetJmpID; } - + // No setjmp in this function catches the exception! return ~0; } diff --git a/runtime/GCCLibraries/crtend/SJLJ-Exception.h b/runtime/GCCLibraries/crtend/SJLJ-Exception.h index eaf927a5f0..ac27cbed7f 100644 --- a/runtime/GCCLibraries/crtend/SJLJ-Exception.h +++ b/runtime/GCCLibraries/crtend/SJLJ-Exception.h @@ -1,10 +1,10 @@ //===- SJLJ-Exception.h - SetJmp/LongJmp Exception Handling -----*- 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 data structures and API used by the Setjmp/Longjmp @@ -61,7 +61,7 @@ extern "C" { // current uncaught exception is a longjmp exception. This is the first step // of catching a sjlj exception. bool __llvm_sjljeh_is_longjmp_exception() throw(); - + // __llvm_sjljeh_get_longjmp_value - This function returns the value that the // setjmp call should "return". This requires that the current uncaught // exception be a sjlj exception, though it does not require the exception to |