]> granicus.if.org Git - llvm/commitdiff
Update update_test_checks so that . is a valid identifier character in addition to _
authorDaniel Berlin <dberlin@dberlin.org>
Sun, 15 Jan 2017 07:40:46 +0000 (07:40 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Sun, 15 Jan 2017 07:40:46 +0000 (07:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292056 91177308-0d34-0410-b5e6-96231b3b80d8

utils/update_test_checks.py

index 7d3195999123795c159031e6b962f6526f857c64..cace9023106f1202f7ef74e83e9e43c9588f2400 100755 (executable)
@@ -70,7 +70,7 @@ CHECK_PREFIX_RE = re.compile('--?check-prefix(?:es)?=(\S+)')
 CHECK_RE = re.compile(r'^\s*;\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:')
 # Match things that look at identifiers, but only if they are followed by
 # 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.