tools/clang/scripts/goma_link.py
def helper():
        """
        This exists so that we can use return instead of
        nested if statements to use the first matching case.
        """
        # After -mllvm, just pass on the param.
        if in_mllvm[0]:
          if param.startswith('-Wl,'):
            codegen_params.append(param[4:])
          else:
            codegen_params.append(param)
          in_mllvm[0] = False
          return

        # Check for params that specify LTO optimization level.
        o = extract_opt_level(param)
        if o is not None:
          optlevel[0] = o
          return

        # Check for params that affect code generation.
        cg_param = self.transform_codegen_param(param)
        if cg_param:
          codegen_params.extend(cg_param)
          # No return here, we still want to check for -mllvm.

        # Check for -mllvm.
        match = self.MLLVM_RE.match(param)
        if match and not match.group(2):
          # Next parameter will be the thing to pass to LLVM.
          in_mllvm[0] = True

        This exists so that we can use return instead of
        nested if statements to use the first matching case.
        
This exists so that we can use return instead of
nested if statements to use the first matching case.
This exists so that we can use return instead of nested if statements to use the first matching case .
def helper():
        if in_mllvm[0]:
          if param.startswith('-Wl,'):
            codegen_params.append(param[4:])
          else:
            codegen_params.append(param)
          in_mllvm[0] = False
          return
        o = extract_opt_level(param)
        if o is not None:
          optlevel[0] = o
          return
        cg_param = self.transform_codegen_param(param)
        if cg_param:
          codegen_params.extend(cg_param)
        match = self.MLLVM_RE.match(param)
        if match and not match.group(2):
          in_mllvm[0] = True
def helper ( ) : if in_mllvm [ 0 ] : if param . startswith ( '-Wl,' ) : codegen_params . append ( param [ 4 : ] ) else : codegen_params . append ( param ) in_mllvm [ 0 ] = False return o = extract_opt_level ( param ) if o is not None : optlevel [ 0 ] = o return cg_param = self . transform_codegen_param ( param ) if cg_param : codegen_params . extend ( cg_param ) match = self . MLLVM_RE . match ( param ) if match and not match . group ( 2 ) : in_mllvm [ 0 ] = True
This exists so that we can use return instead of
nested if statements to use the first matching case.
This exists so that we can use return instead of nested if statements to use the first matching case .
"""
        This exists so that we can use return instead of
        nested if statements to use the first matching case.
        """ # After -mllvm, just pass on the param. # Check for params that specify LTO optimization level. # Check for params that affect code generation. # No return here, we still want to check for -mllvm. # Check for -mllvm. # Next parameter will be the thing to pass to LLVM.