Class: LLVM::SwitchInst
- Inherits:
-
Instruction
- Object
- Value
- User
- Instruction
- LLVM::SwitchInst
- Defined in:
- lib/llvm/core/value.rb
Instance Method Summary collapse
-
#add_case(val, block) ⇒ Object
Adds a case to a switch instruction.
Methods inherited from Instruction
Methods inherited from User
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 |