Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 0bc0c53

Browse files
committed
[UpdateTestChecks] Teach the x86 asm parser to skip over the function
begin label emitted for some routines with personality functions and such. Without this, we don't even recognize such functions as appearing in the output and so don't attach any assertions to them. Happy to tweak this or improve it if folks w/ deeper knowledge of the asm sequences that show up here want. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336987 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent c3bd8cc commit 0bc0c53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/UpdateTestChecks/asm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class string:
1414
##### Assembly parser
1515

1616
ASM_FUNCTION_X86_RE = re.compile(
17-
r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n[^:]*?'
17+
r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*.Lfunc_begin[^:\n]*:\n)?[^:]*?'
1818
r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
1919
r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|#+ -- End function)',
2020
flags=(re.M | re.S))

0 commit comments

Comments
 (0)