parameters: (llvmir)
return_statement: return '\n'.join(lines)
docstring: Find the line containing the datalayout and replace it
docstring_summary: Find the line containing the datalayout and replace it
docstring_tokens: Find the line containing the datalayout and replace it
function: def _replace_datalayout(llvmir):
      """
      Find the line containing the datalayout and replace it
      """
      lines = llvmir.splitlines()
      for i, ln in enumerate(lines):
          if ln.startswith("target datalayout"):
              tmp = 'target datalayout = "{0}"'
              lines[i] = tmp.format(default_data_layout)
              break
      return '\n'.join(lines)
function_tokens: def _replace_datalayout ( llvmir ) : lines = llvmir . splitlines ( ) for i , ln in enumerate ( lines ) : if ln . startswith ( "target datalayout" ) : tmp = 'target datalayout = "{0}"' lines [ i ] = tmp . format ( default_data_layout ) break return '\n' . join ( lines )