clang
3.7.0
|
#include <CGCleanup.h>
Classes | |
struct | Handler |
Public Types | |
typedef const Handler * | iterator |
![]() | |
enum | Kind { Cleanup, Catch, Terminate, Filter } |
Public Member Functions | |
EHCatchScope (unsigned numHandlers, EHScopeStack::stable_iterator enclosingEHScope) | |
unsigned | getNumHandlers () const |
void | setCatchAllHandler (unsigned I, llvm::BasicBlock *Block) |
void | setHandler (unsigned I, llvm::Constant *Type, llvm::BasicBlock *Block) |
const Handler & | getHandler (unsigned I) const |
void | clearHandlerBlocks () |
iterator | begin () const |
iterator | end () const |
![]() | |
EHScope (Kind kind, EHScopeStack::stable_iterator enclosingEHScope) | |
Kind | getKind () const |
llvm::BasicBlock * | getCachedLandingPad () const |
void | setCachedLandingPad (llvm::BasicBlock *block) |
llvm::BasicBlock * | getCachedEHDispatchBlock () const |
void | setCachedEHDispatchBlock (llvm::BasicBlock *block) |
bool | hasEHBranches () const |
EHScopeStack::stable_iterator | getEnclosingEHScope () const |
Static Public Member Functions | |
static size_t | getSizeForNumHandlers (unsigned N) |
static bool | classof (const EHScope *Scope) |
Friends | |
class | EHScopeStack |
Additional Inherited Members | |
![]() | |
union { | |
CommonBitFields CommonBits | |
CatchBitFields CatchBits | |
CleanupBitFields CleanupBits | |
FilterBitFields FilterBits | |
}; | |
A scope which attempts to handle some, possibly all, types of exceptions.
Objective C @finally blocks are represented using a cleanup scope after the catch scope.
Definition at line 141 of file CGCleanup.h.
typedef const Handler* clang::CodeGen::EHCatchScope::iterator |
Definition at line 209 of file CGCleanup.h.
|
inline |
Definition at line 175 of file CGCleanup.h.
References clang::CodeGen::EHScope::CatchBits.
Referenced by getSizeForNumHandlers().
|
inline |
Definition at line 210 of file CGCleanup.h.
Referenced by clang::CodeGen::CodeGenFunction::ExitCXXTryStmt().
Definition at line 213 of file CGCleanup.h.
References clang::CodeGen::EHScope::Catch, and clang::CodeGen::EHScope::getKind().
|
inline |
Definition at line 204 of file CGCleanup.h.
References clang::CodeGen::EHCatchScope::Handler::Block, getHandler(), and getNumHandlers().
Referenced by clang::CodeGen::CodeGenFunction::ExitCXXTryStmt(), and clang::CodeGen::CodeGenFunction::ExitSEHTryStmt().
|
inline |
Definition at line 211 of file CGCleanup.h.
References getNumHandlers().
Definition at line 195 of file CGCleanup.h.
References getNumHandlers().
Referenced by clearHandlerBlocks(), emitCatchDispatchBlock(), clang::CodeGen::CodeGenFunction::EmitLandingPad(), clang::CodeGen::CodeGenFunction::FinallyInfo::exit(), clang::CodeGen::CodeGenFunction::ExitSEHTryStmt(), and clang::CodeGen::CodeGenFunction::getEHDispatchBlock().
|
inline |
Definition at line 181 of file CGCleanup.h.
References clang::CodeGen::EHScope::CatchBits.
Referenced by clearHandlerBlocks(), emitCatchDispatchBlock(), clang::CodeGen::CodeGenFunction::EmitLandingPad(), end(), clang::CodeGen::CodeGenFunction::ExitCXXTryStmt(), clang::CodeGen::CodeGenFunction::getEHDispatchBlock(), getHandler(), clang::CodeGen::EHScopeStack::popCatch(), and setHandler().
Definition at line 171 of file CGCleanup.h.
References EHCatchScope().
Referenced by clang::CodeGen::EHScopeStack::iterator::operator++(), clang::CodeGen::EHScopeStack::popCatch(), and clang::CodeGen::EHScopeStack::pushCatch().
|
inline |
Definition at line 185 of file CGCleanup.h.
References setHandler().
Referenced by clang::CodeGen::CodeGenFunction::FinallyInfo::enter(), clang::CodeGen::CodeGenFunction::EnterCXXTryStmt(), and clang::CodeGen::CodeGenFunction::EnterSEHTryStmt().
|
inline |
Definition at line 189 of file CGCleanup.h.
References clang::CodeGen::EHCatchScope::Handler::Block, getNumHandlers(), and clang::CodeGen::EHCatchScope::Handler::Type.
Referenced by clang::CodeGen::CGObjCRuntime::EmitTryCatchStmt(), clang::CodeGen::CodeGenFunction::EnterCXXTryStmt(), clang::CodeGen::CodeGenFunction::EnterSEHTryStmt(), and setCatchAllHandler().
|
friend |
Definition at line 160 of file CGCleanup.h.