llvm::CatchPadInst::Create

Create a catch pad for CatchSwitch with optional filter arguments.

Synopsis

Declared in <llvm/IR/Instructions.h>

static
CatchPadInst*
Create(
    Value* CatchSwitch,
    ArrayRef<Value*> Args,
    Twine const& NameStr = "",
    InsertPosition InsertBefore = nullptr);

Return Value

The newly created CatchPadInst.

Parameters

NameDescription
CatchSwitchThe owning catchswitch instruction.
ArgsOptional catch filter arguments.
NameStrOptional name for the instruction.
InsertBeforeOptional insertion point.