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

/src/wrappers/llvm/library/factories/llvm_values_factory.e

http://github.com/tybor/Liberty
Specman e | 29 lines | 10 code | 3 blank | 16 comment | 0 complexity | afc1003bb95bec997412fec22cfb8296 MD5 | raw file
 1deferred class LLVM_VALUES_FACTORY
 2	-- Commodity features to get new LLVM_VALUE objects
 3insert 
 4	LLVM_C_TYPES
 5feature {ANY} -- Commodity features
 6	new_bool (a_boolean: BOOLEAN): LLVM_CONSTANT_INT
 7		do
 8			create Result.from_integer(bool,a_boolean.to_integer.to_natural_64, 0)
 9		ensure Result/=Void -- Result.type.is_equal(bool)
10		end
11end -- class LLVM_VALUES_FACTORY
12
13-- Copyright (C) 2009-2017: ,2010,2013 Paolo Redaelli - 2013 Cyril Adrian 
14
15-- This file is part of LLVM wrappers for Liberty Eiffel.
16--
17-- This library is free software: you can redistribute it and/or modify
18-- it under the terms of the GNU Lesser General Public License as published by
19-- the Free Software Foundation, version 3 of the License.
20--
21-- Liberty Eiffel is distributed in the hope that it will be useful,
22-- but WITHOUT ANY WARRANTY; without even the implied warranty of
23-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24-- GNU General Public License for more details.
25--
26-- You should have received a copy of the GNU General Public License
27-- along with Liberty Eiffel.  If not, see <http://www.gnu.org/licenses/>.-- This file is part of LLVM wrappers for Liberty Eiffel.
28--
29