/src/wrappers/llvm/library/llvm_context.e

http://github.com/tybor/Liberty · Specman e · 50 lines · 27 code · 7 blank · 16 comment · 0 complexity · ec5d473277feb7d8f8d72c85b2b2e478 MD5 · raw file

  1. class LLVM_CONTEXT
  2. inherit
  3. C_STRUCT
  4. redefine default_create
  5. end
  6. EIFFEL_OWNED
  7. -- TODO: check if it is the correct behaviour.
  8. redefine dispose, default_create
  9. end
  10. insert CORE_EXTERNALS undefine default_create end
  11. create {ANY} default_create, make
  12. create {WRAPPER,WRAPPER_HANDLER} from_external_pointer
  13. feature {} -- Creation
  14. make
  15. do
  16. handle:=llvmcontext_create
  17. end
  18. default_create
  19. do
  20. handle:=llvmget_global_context
  21. end
  22. feature {} -- Disposing
  23. dispose
  24. do
  25. llvmcontext_dispose(handle)
  26. end
  27. struct_size: like size_t do not_yet_implemented end
  28. end -- class LLVM_CONTEXT
  29. -- Copyright (C) 2009-2017: Paolo Redaelli
  30. -- This file is part of LLVM wrappers for Liberty Eiffel.
  31. --
  32. -- This library is free software: you can redistribute it and/or modify
  33. -- it under the terms of the GNU Lesser General Public License as published by
  34. -- the Free Software Foundation, version 3 of the License.
  35. --
  36. -- Liberty Eiffel is distributed in the hope that it will be useful,
  37. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  38. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39. -- GNU General Public License for more details.
  40. --
  41. -- You should have received a copy of the GNU General Public License
  42. -- along with Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>.
  43. --