Class: LLVM::SwitchInst

Inherits:
Instruction show all
Defined in:
lib/llvm/core/value.rb

Instance Method Summary collapse

Methods inherited from Instruction

#next, #parent, #previous

Methods inherited from User

#operands

Methods inherited from Value

#==, #add_attribute, #constant?, #dump, #eql?, from_ptr, #hash, #name, #name=, #null?, to_ptr, #to_ptr, type, #type, #undefined?

Instance Method Details

#add_case(val, block) ⇒ Object

Adds a case to a switch instruction. First the value to match on, then the basic block.



778
779
780
# File 'lib/llvm/core/value.rb', line 778

def add_case(val, block)
  C.LLVMAddCase(self, val, block)
end