Skip to content

Commit d07762e

Browse files
authored
[UpdateTestChecks][NFC] - Fix typos (llvm#121964)
substition -> substitution in-betweem -> in-between
1 parent 7004d68 commit d07762e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

llvm/test/tools/UpdateTestChecks/lit.local.cfg

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ except ImportError:
1010
from pipes import quote as shell_quote
1111

1212

13-
def add_update_script_substition(
13+
def add_update_script_substitution(
1414
name, python_exe=config.python_executable, extra_args=""
1515
):
1616
assert name.startswith("%")
@@ -33,26 +33,26 @@ llc_path = os.path.join(config.llvm_tools_dir, "llc")
3333
if os.path.isfile(llc_path):
3434
config.available_features.add("llc-binary")
3535
llc_arg = "--llc-binary " + shell_quote(llc_path)
36-
add_update_script_substition("%update_llc_test_checks", extra_args=llc_arg)
37-
add_update_script_substition("%update_mir_test_checks", extra_args=llc_arg)
36+
add_update_script_substitution("%update_llc_test_checks", extra_args=llc_arg)
37+
add_update_script_substitution("%update_mir_test_checks", extra_args=llc_arg)
3838

3939
opt_path = os.path.join(config.llvm_tools_dir, "opt")
4040
if os.path.isfile(opt_path):
4141
config.available_features.add("opt-binary")
4242
opt_arg = "--opt-binary " + shell_quote(opt_path)
43-
add_update_script_substition("%update_test_checks", extra_args=opt_arg)
44-
add_update_script_substition("%update_analyze_test_checks", extra_args=opt_arg)
43+
add_update_script_substitution("%update_test_checks", extra_args=opt_arg)
44+
add_update_script_substitution("%update_analyze_test_checks", extra_args=opt_arg)
4545

4646
llvm_mca_path = os.path.join(config.llvm_tools_dir, "llvm-mca")
4747
if os.path.isfile(llvm_mca_path):
4848
config.available_features.add("llvm-mca-binary")
4949
mca_arg = "--llvm-mca-binary " + shell_quote(llvm_mca_path)
50-
add_update_script_substition("%update_test_checks", extra_args=mca_arg)
50+
add_update_script_substitution("%update_test_checks", extra_args=mca_arg)
5151

5252
split_file_path = os.path.join(config.llvm_tools_dir, "split-file")
5353
if os.path.isfile(split_file_path):
54-
add_update_script_substition("%update_test_body")
54+
add_update_script_substitution("%update_test_body")
5555

5656
llvm_mc_path = os.path.join(config.llvm_tools_dir, "llvm-mc")
5757
if os.path.isfile(llvm_mc_path):
58-
add_update_script_substition("%update_mc_test_checks")
58+
add_update_script_substitution("%update_mc_test_checks")

llvm/utils/UpdateTestChecks/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ def find_diff_matching(lhs: List[str], rhs: List[str]) -> List[tuple]:
13961396
backlinks.append(None)
13971397

13981398
# Commit to names in the matching by walking the backlinks. Recursively
1399-
# attempt to fill in more matches in-betweem.
1399+
# attempt to fill in more matches in-between.
14001400
match_idx = table_candidate_idx[-1]
14011401
while match_idx is not None:
14021402
current = candidates[match_idx]

0 commit comments

Comments
 (0)