mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Fix function regex in update_tests so it can handle {}'s in function args
llvm-svn: 291467
This commit is contained in:
parent
02b3fa484b
commit
031f4f3070
@ -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)?:')
|
||||
|
Loading…
Reference in New Issue
Block a user