[llvm] r309457 - Fix update_llc_test_checks.py ARM parsing
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 28 16:58:24 PDT 2017
Author: efriedma
Date: Fri Jul 28 16:58:24 2017
New Revision: 309457
URL: http://llvm.org/viewvc/llvm-project?rev=309457&view=rev
Log:
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
Modified:
llvm/trunk/utils/update_llc_test_checks.py
Modified: llvm/trunk/utils/update_llc_test_checks.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/update_llc_test_checks.py?rev=309457&r1=309456&r2=309457&view=diff
==============================================================================
--- llvm/trunk/utils/update_llc_test_checks.py (original)
+++ llvm/trunk/utils/update_llc_test_checks.py Fri Jul 28 16:58:24 2017
@@ -49,7 +49,7 @@ ASM_FUNCTION_ARM_RE = re.compile(
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*(.*)$')
More information about the llvm-commits
mailing list