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, from_ptr, #name, #name=, #null?, #remove_attribute, to_ptr, #type, type, #undefined?
Methods included from PointerIdentity
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.
990 991 992 |
# File 'lib/llvm/core/value.rb', line 990 def add_case(val, block) C.add_case(self, val, block) end |