From: Martin Storsjo Date: Mon, 29 Apr 2019 20:25:56 +0000 (+0000) Subject: [UpdateTestChecks] Allow Lbegin_func without a leading period X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78733c026ea3d8c05a2d57726b411563f2fe818f;p=llvm [UpdateTestChecks] Allow Lbegin_func without a leading period On mingw/i686, local labels don't start with a leading period. Also escape the leading period, as it previously could match any char. Differential Revision: https://reviews.llvm.org/D61254 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359497 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/UpdateTestChecks/asm.py b/utils/UpdateTestChecks/asm.py index 115d40051e5..c14417a1644 100644 --- a/utils/UpdateTestChecks/asm.py +++ b/utils/UpdateTestChecks/asm.py @@ -14,7 +14,7 @@ else: ##### Assembly parser ASM_FUNCTION_X86_RE = re.compile( - r'^_?(?P[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*.Lfunc_begin[^:\n]*:\n)?[^:]*?' + r'^_?(?P[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*\.?Lfunc_begin[^:\n]*:\n)?[^:]*?' r'(?P^##?[ \t]+[^:]+:.*?)\s*' r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|#+ -- End function)', flags=(re.M | re.S))