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::Value *Type, llvm::BasicBlock *Block)
const HandlergetHandler (unsigned I) const
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 blocks are represented using a cleanup scope after the catch scope.

Definition at line 136 of file CGCleanup.h.


Member Typedef Documentation

Definition at line 195 of file CGCleanup.h.


Constructor & Destructor Documentation

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

Definition at line 170 of file CGCleanup.h.

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

Referenced by getSizeForNumHandlers().


Member Function Documentation

iterator clang::CodeGen::EHCatchScope::begin ( ) const [inline]

Definition at line 196 of file CGCleanup.h.

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

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

Definition at line 197 of file CGCleanup.h.

References getNumHandlers().

const Handler& clang::CodeGen::EHCatchScope::getHandler ( unsigned  I) const [inline]
unsigned clang::CodeGen::EHCatchScope::getNumHandlers ( ) const [inline]
static size_t clang::CodeGen::EHCatchScope::getSizeForNumHandlers ( unsigned  N) [inline, static]
void clang::CodeGen::EHCatchScope::setCatchAllHandler ( unsigned  I,
llvm::BasicBlock *  Block 
) [inline]
void clang::CodeGen::EHCatchScope::setHandler ( unsigned  I,
llvm::Value Type,
llvm::BasicBlock *  Block 
) [inline]

Friends And Related Function Documentation

friend class EHScopeStack [friend]

Definition at line 155 of file CGCleanup.h.


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