class SwitchInst::CaseHandle
Declaration
class SwitchInst::CaseHandle : public CaseHandleImpl { /* full declaration omitted */ };
Description
A handle to a particular switch case. It exposes a convenient interface to both the case value and the successor block. We define this as a template and instantiate it to form both a const and non-const handle.
Declared at: llvm/include/llvm/IR/Instructions.h:3343
Inherits from: CaseHandleImpl
Method Overview
- public CaseHandle(llvm::SwitchInst * SI, ptrdiff_t Index)
- public void setSuccessor(llvm::BasicBlock * S) const
- public void setValue(llvm::ConstantInt * V) const
Methods
¶CaseHandle(llvm::SwitchInst* SI, ptrdiff_t Index)
CaseHandle(llvm::SwitchInst* SI, ptrdiff_t Index)
Declared at: llvm/include/llvm/IR/Instructions.h:3348
Parameters
- llvm::SwitchInst* SI
- ptrdiff_t Index
¶void setSuccessor(llvm::BasicBlock* S) const
void setSuccessor(llvm::BasicBlock* S) const
Description
Sets the new successor for current case.
Declared at: llvm/include/llvm/IR/Instructions.h:3358
Parameters
¶void setValue(llvm::ConstantInt* V) const
void setValue(llvm::ConstantInt* V) const
Description
Sets the new value for current case.
Declared at: llvm/include/llvm/IR/Instructions.h:3351