@@ -933,7 +933,7 @@ def __init__(
933
933
self .variable_mapping = {}
934
934
935
935
# Return true if this kind of IR value is "local", basically if it matches '%{{.*}}'.
936
- def is_local_def_ir_value_match (self , match ):
936
+ def is_local_def_ir_value (self ):
937
937
return self .ir_prefix == "%"
938
938
939
939
# Return true if this kind of IR value is "global", basically if it matches '#{{.*}}'.
@@ -949,7 +949,7 @@ def get_ir_prefix_from_ir_value_match(self, match):
949
949
# Return the IR regexp we use for this kind or IR value, e.g., [\w.-]+? for locals
950
950
def get_ir_regex_from_ir_value_re_match (self , match ):
951
951
# for backwards compatibility we check locals with '.*'
952
- if self .is_local_def_ir_value_match ( match ):
952
+ if self .is_local_def_ir_value ( ):
953
953
return ".*"
954
954
return self .ir_regexp
955
955
@@ -990,7 +990,7 @@ def get_value_definition(self, var, match):
990
990
else :
991
991
regex = self .get_ir_regex_from_ir_value_re_match (match )
992
992
capture_start = "[["
993
- if self .is_local_def_ir_value_match ( match ):
993
+ if self .is_local_def_ir_value ( ):
994
994
return capture_start + varname + ":" + prefix + regex + "]]"
995
995
return prefix + capture_start + varname + ":" + regex + "]]"
996
996
@@ -999,7 +999,7 @@ def get_value_use(self, var, match, var_prefix=None):
999
999
if var_prefix is None :
1000
1000
var_prefix = self .check_prefix
1001
1001
capture_start = "[[#" if self .is_number else "[["
1002
- if self .is_local_def_ir_value_match ( match ):
1002
+ if self .is_local_def_ir_value ( ):
1003
1003
return capture_start + self .get_value_name (var , var_prefix ) + "]]"
1004
1004
prefix = self .get_ir_prefix_from_ir_value_match (match )[0 ]
1005
1005
return prefix + capture_start + self .get_value_name (var , var_prefix ) + "]]"
@@ -1209,7 +1209,7 @@ def transform_line_vars(match):
1209
1209
" with scripted FileCheck name." % (var ,)
1210
1210
)
1211
1211
key = (var , nameless_value .check_key )
1212
- is_local_def = nameless_value .is_local_def_ir_value_match ( match )
1212
+ is_local_def = nameless_value .is_local_def_ir_value ( )
1213
1213
if is_local_def and key in vars_seen :
1214
1214
rv = nameless_value .get_value_use (var , match )
1215
1215
elif not is_local_def and key in global_vars_seen :
0 commit comments