[PATCH] D61254: [UpdateTestChecks] Allow Lbegin_func without a leading period
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 01:33:06 PDT 2019
mstorsjo created this revision.
mstorsjo added reviewers: rnk, chandlerc.
Herald added a project: LLVM.
On mingw/i686, local labels don't start with a leading period.
Repository:
rL LLVM
https://reviews.llvm.org/D61254
Files:
utils/UpdateTestChecks/asm.py
Index: utils/UpdateTestChecks/asm.py
===================================================================
--- utils/UpdateTestChecks/asm.py
+++ utils/UpdateTestChecks/asm.py
@@ -14,7 +14,7 @@
##### Assembly parser
ASM_FUNCTION_X86_RE = re.compile(
- r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*.Lfunc_begin[^:\n]*:\n)?[^:]*?'
+ r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*.?Lfunc_begin[^:\n]*:\n)?[^:]*?'
r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|#+ -- End function)',
flags=(re.M | re.S))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61254.197063.patch
Type: text/x-patch
Size: 606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190429/fb2c5057/attachment.bin>
More information about the llvm-commits
mailing list