clang API Documentation

Classes | Public Types | Public Member Functions | Static Public Member Functions | Friends
clang::CodeGen::EHCatchScope Class Reference

#include <CGCleanup.h>

Inheritance diagram for clang::CodeGen::EHCatchScope:
Inheritance graph
[legend]
Collaboration diagram for clang::CodeGen::EHCatchScope:
Collaboration graph
[legend]

List of all members.

Classes

struct  Handler

Public Types

typedef const Handleriterator

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 HandlergetHandler (unsigned I) const
void clearHandlerBlocks ()
iterator begin () const
iterator end () const

Static Public Member Functions

static size_t getSizeForNumHandlers (unsigned N)
static bool classof (const EHScope *Scope)

Friends

class EHScopeStack

Detailed Description

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 138 of file CGCleanup.h.


Member Typedef Documentation

Definition at line 206 of file CGCleanup.h.


Constructor & Destructor Documentation

clang::CodeGen::EHCatchScope::EHCatchScope ( unsigned  numHandlers,
EHScopeStack::stable_iterator  enclosingEHScope 
) [inline]

Definition at line 172 of file CGCleanup.h.

References clang::CodeGen::EHScope::CatchBits.

Referenced by getSizeForNumHandlers().


Member Function Documentation

Definition at line 207 of file CGCleanup.h.

Referenced by clang::CodeGen::CodeGenFunction::ExitCXXTryStmt().

static bool clang::CodeGen::EHCatchScope::classof ( const EHScope Scope) [inline, static]

Definition at line 208 of file CGCleanup.h.

References getNumHandlers().

void clang::CodeGen::EHCatchScope::setCatchAllHandler ( unsigned  I,
llvm::BasicBlock *  Block 
) [inline]
void clang::CodeGen::EHCatchScope::setHandler ( unsigned  I,
llvm::Constant *  Type,
llvm::BasicBlock *  Block 
) [inline]

Friends And Related Function Documentation

friend class EHScopeStack [friend]

Definition at line 157 of file CGCleanup.h.


The documentation for this class was generated from the following file: