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

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