From: Eli Friedman Date: Fri, 28 Jul 2017 23:58:24 +0000 (+0000) Subject: Fix update_llc_test_checks.py ARM parsing X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44234f0b0adbbcd721af5f475ae989253cfb7b08;p=llvm Fix update_llc_test_checks.py ARM parsing 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. Patch by Joel Galenson! Differential Revision: https://reviews.llvm.org/D35641 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309457 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/update_llc_test_checks.py b/utils/update_llc_test_checks.py index 3b3ff74d863..047f3e670ec 100755 --- a/utils/update_llc_test_checks.py +++ b/utils/update_llc_test_checks.py @@ -49,7 +49,7 @@ ASM_FUNCTION_ARM_RE = re.compile( r'^(?P[0-9a-zA-Z_]+):\n' # f: (name of function) r'\s+\.fnstart\n' # .fnstart r'(?P.*?)\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*(.*)$')