@@ -10,7 +10,7 @@ except ImportError:
10
10
from pipes import quote as shell_quote
11
11
12
12
13
- def add_update_script_substition (
13
+ def add_update_script_substitution (
14
14
name, python_exe =config.python_executable, extra_args =" "
15
15
):
16
16
assert name.startswith(" %" )
@@ -33,26 +33,26 @@ llc_path = os.path.join(config.llvm_tools_dir, "llc")
33
33
if os.path.isfile(llc_path):
34
34
config.available_features.add(" llc-binary" )
35
35
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)
38
38
39
39
opt_path = os.path.join(config.llvm_tools_dir, " opt" )
40
40
if os.path.isfile(opt_path):
41
41
config.available_features.add(" opt-binary" )
42
42
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)
45
45
46
46
llvm_mca_path = os.path.join(config.llvm_tools_dir, " llvm-mca" )
47
47
if os.path.isfile(llvm_mca_path):
48
48
config.available_features.add(" llvm-mca-binary" )
49
49
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)
51
51
52
52
split_file_path = os.path.join(config.llvm_tools_dir, " split-file" )
53
53
if os.path.isfile(split_file_path):
54
- add_update_script_substition (" %update_test_body" )
54
+ add_update_script_substitution (" %update_test_body" )
55
55
56
56
llvm_mc_path = os.path.join(config.llvm_tools_dir, " llvm-mc" )
57
57
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" )
0 commit comments