PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/wrappers/llvm/library/values/llvm_switch_inst.e

http://github.com/tybor/Liberty
Specman e | 33 lines | 13 code | 3 blank | 17 comment | 0 complexity | a9fbfa893f68adcd29a5543801354ac3 MD5 | raw file
 1class LLVM_SWITCH_INST
 2	-- A multiway switch instruction.
 3
 4inherit LLVM_TERMINATOR_INST
 5insert CORE_EXTERNALS
 6create {LLVM_BUILDER} from_external_pointer
 7feature {ANY} 
 8	add_case (a_value: LLVM_VALUE; a_destionation: LLVM_BASIC_BLOCK)
 9		-- Add to Current the case for `a_value' that will execute `a_destionation'
10	require 
11		a_value/=Void
12		a_destionation/=Void
13	do
14		llvmadd_case(handle,a_value.handle,a_destionation.handle)
15	end
16end -- class LLVM_SWITCH_INST
17
18-- Copyright (C) 2009-2017: Paolo Redaelli
19-- This file is part of LLVM wrappers for Liberty Eiffel.
20--
21-- This library is free software: you can redistribute it and/or modify
22-- it under the terms of the GNU Lesser General Public License as published by
23-- the Free Software Foundation, version 3 of the License.
24--
25-- Liberty Eiffel is distributed in the hope that it will be useful,
26-- but WITHOUT ANY WARRANTY; without even the implied warranty of
27-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28-- GNU General Public License for more details.
29--
30-- You should have received a copy of the GNU General Public License
31-- along with Liberty Eiffel.  If not, see <http://www.gnu.org/licenses/>.
32--
33