
C]c           @@ s   d  d l  m Z m Z d  d l m Z m Z m Z d d l m Z d   Z	 e j
 e j
 e e  g e j j _ e e j j _ d S(   i    (   t   print_functiont   absolute_import(   t   c_intt   c_char_pt   POINTERi   (   t   ffic         C@ sV   t  j   D } t  j j |  | |  } | j   | rL t t |    n  Wd  QXd  S(   N(   R   t   OutputStringt   libt   LLVMPY_LinkModulest   detacht   RuntimeErrort   str(   t   dstt   srct   outerrt   err(    (    s6   lib/python2.7/site-packages/llvmlite/binding/linker.pyt   link_modules   s
    
N(   t
   __future__R    R   t   ctypesR   R   R   t    R   R   t   LLVMModuleRefR   R   t   argtypest   restype(    (    (    s6   lib/python2.7/site-packages/llvmlite/binding/linker.pyt   <module>   s   	
