B
    Ꮚ\                 @   sx   d dl mZmZ ddlmZ dd Zdd ZG dd	 d	ejZG d
d deZ	ej
ejj_ej
ejj_ej
gejj_dS )    )print_functionabsolute_import   )ffic               C   s   t tj S )N)
ContextRefr   libLLVMPY_ContextCreate r	   r	   7lib/python3.7/site-packages/llvmlite/binding/context.pycreate_context   s    r   c               C   s   t tj S )N)GlobalContextRefr   r   LLVMPY_GetGlobalContextr	   r	   r	   r
   get_global_context
   s    r   c                   s$   e Zd Z fddZdd Z  ZS )r   c                s   t t| | d S )N)superr   __init__)selfZcontext_ptr)	__class__r	   r
   r      s    zContextRef.__init__c             C   s   t j|  d S )N)r   r   LLVMPY_ContextDispose)r   r	   r	   r
   _dispose   s    zContextRef._dispose)__name__
__module____qualname__r   r   __classcell__r	   r	   )r   r
   r      s   r   c               @   s   e Zd Zdd ZdS )r   c             C   s   d S )Nr	   )r   r	   r	   r
   r      s    zGlobalContextRef._disposeN)r   r   r   r   r	   r	   r	   r
   r      s   r   N)Z
__future__r   r    r   r   r   Z	ObjectRefr   r   ZLLVMContextRefr   r   Zrestyper   r   Zargtypesr	   r	   r	   r
   <module>   s   