mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
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
This commit is contained in:
parent
214191f473
commit
7b3092d3e4
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user