#include <HandlerEmitter.h>
Public Member Functions | |
HandlerEmitter (CodeGenRoutine &CGR) | |
void | emitHandlers (StmtSequence *seq, llvm::BasicBlock *mergeBB=0) |
Definition at line 37 of file HandlerEmitter.h.
HandlerEmitter::HandlerEmitter | ( | CodeGenRoutine & | CGR | ) |
Definition at line 17 of file HandlerEmitter.cpp.
void HandlerEmitter::emitHandlers | ( | StmtSequence * | seq, | |
llvm::BasicBlock * | mergeBB = 0 | |||
) |
Emits the exception handlers associated with the given StmtSequence.
The given statement sequence must provide at least one handler. The current frame must provide a landing pad. Emits the handler code into the landing pad and unifies the control flow to target mergeBB
if non-null. If mergeBB
is null, an implicit basic block is generated. The insertion point of the builder is set to the merge block on return.
Definition at line 52 of file HandlerEmitter.cpp.