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

http://github.com/tybor/Liberty · Specman e · 38 lines · 16 code · 5 blank · 17 comment · 0 complexity · 2c56e7fa7fbb8a4d21819e22415e2d5c MD5 · raw file

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