/src/wrappers/llvm/library/factories/llvm_function_factory.e
Specman e | 38 lines | 16 code | 5 blank | 17 comment | 0 complexity | 2c56e7fa7fbb8a4d21819e22415e2d5c MD5 | raw file
1deferred class LLVM_FUNCTION_FACTORY 2 -- A factory of LLVM_FUNCTIONs 3 4inherit 5 WRAPPER_FACTORY[LLVM_FUNCTION] 6 rename 7 wrapper as function_wrapper, 8 wrapper_or_void as function_wrapper_or_void 9 end 10insert 11 CORE_EXTERNALS 12 EXCEPTIONS undefine copy, is_equal end 13 14feature {WRAPPER, WRAPPER_HANDLER} 15 function_wrapper (a_pointer: POINTER): LLVM_FUNCTION 16 -- The LLVM_FUNCTION for `a_pointer' of the fittest type. 17 do 18 create Result.from_external_pointer(a_pointer) 19 end 20end -- class LLVM_FUNCTION_FACTORY 21 22-- Copyright (C) 2009-2017: ,2010,2013 Paolo Redaelli - 2013 Cyril Adrian 23 24-- This file is part of LLVM wrappers for Liberty Eiffel. 25-- 26-- This library is free software: you can redistribute it and/or modify 27-- it under the terms of the GNU Lesser General Public License as published by 28-- the Free Software Foundation, version 3 of the License. 29-- 30-- Liberty Eiffel is distributed in the hope that it will be useful, 31-- but WITHOUT ANY WARRANTY; without even the implied warranty of 32-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 33-- GNU General Public License for more details. 34-- 35-- You should have received a copy of the GNU General Public License 36-- along with Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>. 37-- 38