summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorEli Friedman <efriedma@codeaurora.org>2017-07-28 23:58:24 +0000
committerEli Friedman <efriedma@codeaurora.org>2017-07-28 23:58:24 +0000
commitb6fc8dc5e59294dffa627f261d05e83c58e4dc6f (patch)
tree259d9440bb2af15fdd6618fe88c6b52e0fc8f4ad /llvm/utils
parent819d84032e0eee09781f1fe4ec5f47b3b664e704 (diff)
downloadbcm5719-llvm-b6fc8dc5e59294dffa627f261d05e83c58e4dc6f.tar.gz
bcm5719-llvm-b6fc8dc5e59294dffa627f261d05e83c58e4dc6f.zip
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 llvm-svn: 309457
Diffstat (limited to 'llvm/utils')
-rwxr-xr-xllvm/utils/update_llc_test_checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/update_llc_test_checks.py b/llvm/utils/update_llc_test_checks.py
index 3b3ff74d863..047f3e670ec 100755
--- a/llvm/utils/update_llc_test_checks.py
+++ b/llvm/utils/update_llc_test_checks.py
@@ -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*(.*)$')
OpenPOWER on IntegriCloud