/src/wrappers/llvm/library/types/llvm_opaque_type.e

http://github.com/tybor/Liberty · Specman e · 35 lines · 15 code · 5 blank · 15 comment · 0 complexity · 4548d7377a9a00eb740b1338e75e6333 MD5 · raw file

  1. class LLVM_OPAQUE_TYPE
  2. inherit LLVM_TYPE
  3. create {ANY} make, in_context, from_external_pointer
  4. feature {ANY} -- Creation
  5. make
  6. do
  7. handle:=llvmopaque_type
  8. end
  9. in_context (a_context: LLVM_CONTEXT)
  10. require a_context/=Void
  11. do
  12. handle:=llvmopaque_type_in_context(a_context.handle)
  13. end
  14. invariant type_kind.is_opaque_type_kind
  15. end -- class LLVM_OPAQUE_TYPE
  16. -- Copyright (C) 2009-2017: Paolo Redaelli
  17. -- This file is part of LLVM wrappers for Liberty Eiffel.
  18. --
  19. -- This library is free software: you can redistribute it and/or modify
  20. -- it under the terms of the GNU Lesser General Public License as published by
  21. -- the Free Software Foundation, version 3 of the License.
  22. --
  23. -- Liberty Eiffel is distributed in the hope that it will be useful,
  24. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  25. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26. -- GNU General Public License for more details.
  27. --
  28. -- You should have received a copy of the GNU General Public License
  29. -- along with Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>.
  30. --