llvm.org GIT mirror llvm / 7b3092d
Urg, forgot to add a file header somehow. Add missing function comments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8236 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
2 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 //===- SJLJ-Exception.cpp - SetJmp/LongJmp Exception Handling -------------===//
1 //
2 // This file implements the API used by the Setjmp/Longjmp exception handling
3 // runtime library.
4 //
5 //===----------------------------------------------------------------------===//
6
17 #include "SJLJ-Exception.h"
28 #include
39 #include
410
11 // get_sjlj_exception - Adjust the llvm_exception pointer to be an appropriate
12 // llvm_sjlj_exception pointer.
513 inline llvm_sjlj_exception *get_sjlj_exception(llvm_exception *E) {
614 assert(E->ExceptionType == SJLJException);
715 return (llvm_sjlj_exception*)(E+1) - 1;
1523 SetJmpMapEntry *Next;
1624 };
1725
26 // SJLJDestructor - This function is used to free the exception when
27 // language-indent code needs to destroy the exception without knowing exactly
28 // what type it is.
1829 static void SJLJDestructor(llvm_exception *E) {
1930 free(get_sjlj_exception(E));
2031 }
0 //===- SJLJ-Exception.cpp - SetJmp/LongJmp Exception Handling -------------===//
1 //
2 // This file implements the API used by the Setjmp/Longjmp exception handling
3 // runtime library.
4 //
5 //===----------------------------------------------------------------------===//
6
17 #include "SJLJ-Exception.h"
28 #include
39 #include
410
11 // get_sjlj_exception - Adjust the llvm_exception pointer to be an appropriate
12 // llvm_sjlj_exception pointer.
513 inline llvm_sjlj_exception *get_sjlj_exception(llvm_exception *E) {
614 assert(E->ExceptionType == SJLJException);
715 return (llvm_sjlj_exception*)(E+1) - 1;
1523 SetJmpMapEntry *Next;
1624 };
1725
26 // SJLJDestructor - This function is used to free the exception when
27 // language-indent code needs to destroy the exception without knowing exactly
28 // what type it is.
1829 static void SJLJDestructor(llvm_exception *E) {
1930 free(get_sjlj_exception(E));
2031 }