B
    Ꮚ\)                 @   sB   d dl mZmZ ddlmZ ddlmZ G dd deZe ZdS )    )print_functionabsolute_import   )_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   2lib/python3.7/site-packages/llvmlite/ir/context.py__init__   s    
zContext.__init__c             C   s<   || j kr.| j| t| |}|| j |< n
| j | }|S )N)r	   r   registerr   ZIdentifiedStructType)r
   nameZ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
__future__r   r    r   r   objectr   Zglobal_contextr   r   r   r   <module>   s   