class RCGTK::SwitchInst

An Instruction representing a conditional jump with multiple cases.

@LLVMInst switch

Public Instance Methods

add_case(val, block) click to toggle source

Add a case to this conditional jump.

@param [Value] val Value for this case. @param [BasicBlock] block BasicBlock to jump to if this case is matched.

@return [void]

# File lib/rcgtk/instruction.rb, line 280
def add_case(val, block)
        Bindings.add_case(@ptr, val, block)
end