parameters: (self, filename=None, contents=None)
docstring: Construct an instance from a filename or binary data.
  
          filename must be a path to a file that can be opened with open().
          contents can be either a native Python buffer type (like str) or a
          llvm.core.MemoryBuffer instance.
docstring_summary: Construct an instance from a filename or binary data.
docstring_tokens: Construct an instance from a filename or binary data .
function: def __init__(self, filename=None, contents=None):
          """Construct an instance from a filename or binary data.
  
          filename must be a path to a file that can be opened with open().
          contents can be either a native Python buffer type (like str) or a
          llvm.core.MemoryBuffer instance.
          """
          if contents:
              assert isinstance(contents, MemoryBuffer)
  
          if filename is not None:
              contents = MemoryBuffer(filename=filename)
  
          if contents is None:
              raise Exception('No input found.')
  
          ptr = lib.LLVMCreateObjectFile(contents)
          LLVMObject.__init__(self, ptr, disposer=lib.LLVMDisposeObjectFile)
          self.take_ownership(contents)
function_tokens: def __init__ ( self , filename = None , contents = None ) : if contents : assert isinstance ( contents , MemoryBuffer ) if filename is not None : contents = MemoryBuffer ( filename = filename ) if contents is None : raise Exception ( 'No input found.' ) ptr = lib . LLVMCreateObjectFile ( contents ) LLVMObject . __init__ ( self , ptr , disposer = lib . LLVMDisposeObjectFile ) self . take_ownership ( contents )