Update update_test_checks so that . is a valid identifier character in addition to _

llvm-svn: 292056
This commit is contained in:
Daniel Berlin 2017-01-15 07:40:46 +00:00
parent 021cb2b6fc
commit b18135f2b3
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ CHECK_PREFIX_RE = re.compile('--?check-prefix(?:es)?=(\S+)')
CHECK_RE = re.compile(r'^\s*;\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:') CHECK_RE = re.compile(r'^\s*;\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:')
# Match things that look at identifiers, but only if they are followed by # Match things that look at identifiers, but only if they are followed by
# spaces, commas, paren, or end of the string # spaces, commas, paren, or end of the string
IR_VALUE_RE = re.compile(r'(\s+)%(\w+?)([,\s\(\)]|\Z)') IR_VALUE_RE = re.compile(r'(\s+)%([\w\.]+?)([,\s\(\)]|\Z)')
# Invoke the tool that is being tested. # Invoke the tool that is being tested.