[PATCH] D53059: [NFC] Fix the regular expression for BE PPC in update_llc_test_checks.py

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 22 07:41:20 PDT 2018


nemanjai updated this revision to Diff 170410.
nemanjai added a comment.

Updated the regular expression to just eat any text that is not relevant between the function directive and its text. This seems to work for both ELFv1 and ELFv2 asm output.


Repository:
  rL LLVM

https://reviews.llvm.org/D53059

Files:
  utils/UpdateTestChecks/asm.py


Index: utils/UpdateTestChecks/asm.py
===================================================================
--- utils/UpdateTestChecks/asm.py
+++ utils/UpdateTestChecks/asm.py
@@ -52,6 +52,7 @@
 
 ASM_FUNCTION_PPC_RE = re.compile(
     r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n'
+    r'.*?'
     r'\.Lfunc_begin[0-9]+:\n'
     r'(?:[ \t]+.cfi_startproc\n)?'
     r'(?:\.Lfunc_[gl]ep[0-9]+:\n(?:[ \t]+.*?\n)*)*'


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53059.170410.patch
Type: text/x-patch
Size: 414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181022/cf1e66bc/attachment.bin>


More information about the llvm-commits mailing list