diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-08-30 23:31:08 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-08-30 23:31:08 +0000 |
| commit | 8266b4c548f5e93141aaaf9885d2dfb8b32a9e7e (patch) | |
| tree | fde6a440671d494299272334945867f020681ca7 /llvm/runtime/GCCLibraries/libexception | |
| parent | e4e1a8a8a40bca740243040a56ae57391e532fe4 (diff) | |
| download | bcm5719-llvm-8266b4c548f5e93141aaaf9885d2dfb8b32a9e7e.tar.gz bcm5719-llvm-8266b4c548f5e93141aaaf9885d2dfb8b32a9e7e.zip | |
Urg, forgot to add a file header somehow.
Add missing function comments
llvm-svn: 8236
Diffstat (limited to 'llvm/runtime/GCCLibraries/libexception')
| -rw-r--r-- | llvm/runtime/GCCLibraries/libexception/SJLJ-Exception.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/runtime/GCCLibraries/libexception/SJLJ-Exception.cpp b/llvm/runtime/GCCLibraries/libexception/SJLJ-Exception.cpp index fea2d4128fe..8bc13e7659f 100644 --- a/llvm/runtime/GCCLibraries/libexception/SJLJ-Exception.cpp +++ b/llvm/runtime/GCCLibraries/libexception/SJLJ-Exception.cpp @@ -1,8 +1,16 @@ +//===- SJLJ-Exception.cpp - SetJmp/LongJmp Exception Handling -------------===// +// +// This file implements the API used by the Setjmp/Longjmp exception handling +// runtime library. +// +//===----------------------------------------------------------------------===// #include "SJLJ-Exception.h" #include <cstdlib> #include <cassert> +// get_sjlj_exception - Adjust the llvm_exception pointer to be an appropriate +// llvm_sjlj_exception pointer. inline llvm_sjlj_exception *get_sjlj_exception(llvm_exception *E) { assert(E->ExceptionType == SJLJException); return (llvm_sjlj_exception*)(E+1) - 1; @@ -16,6 +24,9 @@ struct SetJmpMapEntry { SetJmpMapEntry *Next; }; +// SJLJDestructor - This function is used to free the exception when +// language-indent code needs to destroy the exception without knowing exactly +// what type it is. static void SJLJDestructor(llvm_exception *E) { free(get_sjlj_exception(E)); } |

