parameters: (self, cache=False)
docstring: Obtain the relocations in this Section.
  
          This is a generator for llvm.object.Relocation instances.
  
          Each instance is a limited used object. See this module's documentation
          on iterators for more.
docstring_summary: Obtain the relocations in this Section.
docstring_tokens: Obtain the relocations in this Section .
function: def get_relocations(self, cache=False):
          """Obtain the relocations in this Section.
  
          This is a generator for llvm.object.Relocation instances.
  
          Each instance is a limited used object. See this module's documentation
          on iterators for more.
          """
          if self.expired:
              raise Exception('Section instance has expired.')
  
          relocations = lib.LLVMGetRelocations(self)
          last = None
          while True:
              if lib.LLVMIsRelocationIteratorAtEnd(self, relocations):
                  break
  
              last = Relocation(relocations)
              if cache:
                  last.cache()
  
              yield last
  
              lib.LLVMMoveToNextRelocation(relocations)
              last.expire()
  
          if last is not None:
              last.expire()
  
          lib.LLVMDisposeRelocationIterator(relocations)
function_tokens: def get_relocations ( self , cache = False ) : if self . expired : raise Exception ( 'Section instance has expired.' ) relocations = lib . LLVMGetRelocations ( self ) last = None while True : if lib . LLVMIsRelocationIteratorAtEnd ( self , relocations ) : break last = Relocation ( relocations ) if cache : last . cache ( ) yield last lib . LLVMMoveToNextRelocation ( relocations ) last . expire ( ) if last is not None : last . expire ( ) lib . LLVMDisposeRelocationIterator ( relocations )