[PATCH] D35641: Fix update_llc_test_checks.py ARM parsing
Joel Galenson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 13:34:59 PDT 2017
jgalenson created this revision.
Herald added subscribers: kristof.beyls, aemerson.
When I tried running the script, the ARM regex parser could not parse my code. It failed because the .Lfunc_end line has a comment at the end of it, so this commit removes the newline at the end of the regex.
https://reviews.llvm.org/D35641
Files:
utils/update_llc_test_checks.py
Index: utils/update_llc_test_checks.py
===================================================================
--- utils/update_llc_test_checks.py
+++ utils/update_llc_test_checks.py
@@ -49,7 +49,7 @@
r'^(?P<func>[0-9a-zA-Z_]+):\n' # f: (name of function)
r'\s+\.fnstart\n' # .fnstart
r'(?P<body>.*?)\n' # (body of the function)
- r'.Lfunc_end[0-9]+:\n', # .Lfunc_end0:
+ r'.Lfunc_end[0-9]+:', # .Lfunc_end0:
flags=(re.M | re.S))
RUN_LINE_RE = re.compile('^\s*;\s*RUN:\s*(.*)$')
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35641.107364.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170719/47e055d4/attachment.bin>
More information about the llvm-commits
mailing list