U
    +‰d  ã                   @   s2   d dl mZ d dl mZ G dd„ deƒZeƒ ZdS )é    )Ú_utils)Útypesc                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚContextc                 C   s   t  ¡ | _i | _d S ©N)r   Z	NameScopeÚscopeÚidentified_types)Úself© r	   ú7/tmp/pip-unpacked-wheel-stw2luzp/llvmlite/ir/context.pyÚ__init__   s    
zContext.__init__c                 C   s<   || j kr.| j |¡ t | |¡}|| j |< n
| j | }|S r   )r   r   Úregisterr   ZIdentifiedStructType)r   ÚnameÚtyr	   r	   r
   Úget_identified_type
   s    

zContext.get_identified_typeN)Ú__name__Ú
__module__Ú__qualname__r   r   r	   r	   r	   r
   r      s   r   N)Zllvmlite.irr   r   Úobjectr   Zglobal_contextr	   r	   r	   r
   Ú<module>   s   