Fix function regex in update_tests so it can handle {}'s in function args

llvm-svn: 291467
This commit is contained in:
Daniel Berlin 2017-01-09 19:24:19 +00:00
parent e542373920
commit 101db5f7bc
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ LLC_FUNCTION_RE = re.compile(
flags=(re.M | re.S))
OPT_FUNCTION_RE = re.compile(
r'^\s*define\s+(?:internal\s+)?[^@]*@(?P<func>[\w-]+?)\s*\('
r'(\s+)?[^{]*\{\n(?P<body>.*?)^\}$',
r'(\s+)?[^)]*[^{]*\{\n(?P<body>.*?)^\}$',
flags=(re.M | re.S))
CHECK_PREFIX_RE = re.compile('--check-prefix=(\S+)')
CHECK_RE = re.compile(r'^\s*;\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:')