[PATCH] D151526: [lit] coach lit to filter out certain m68k debug directive

Sheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 19:46:51 PDT 2023


0x59616e updated this revision to Diff 525919.
0x59616e added a comment.

rebase


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151526/new/

https://reviews.llvm.org/D151526

Files:
  llvm/utils/UpdateTestChecks/asm.py


Index: llvm/utils/UpdateTestChecks/asm.py
===================================================================
--- llvm/utils/UpdateTestChecks/asm.py
+++ llvm/utils/UpdateTestChecks/asm.py
@@ -71,10 +71,11 @@
 
 ASM_FUNCTION_M68K_RE = re.compile(
     r'^_?(?P<func>[^:]+):[ \t]*;[ \t]*@"?(?P=func)"?\n'
-    r"(?P<body>.*?)\s*"  # (body of the function)
-    r".Lfunc_end[0-9]+:\n",
-    flags=(re.M | re.S),
-)
+    r'(?:\.L(?P=func)\$local:\n)?'  # drop .L<func>$local:
+    r'(?:[ \t]+\.type[ \t]+\.L(?P=func)\$local, at function\n)?' # drop .type .L<func>$local, at function
+    r'(?P<body>.*?)\s*' # (body of the function)
+    r'.Lfunc_end[0-9]+:\n',
+    flags=(re.M | re.S))
 
 ASM_FUNCTION_MIPS_RE = re.compile(
     r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n[^:]*?'  # f: (name of func)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151526.525919.patch
Type: text/x-patch
Size: 801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230526/7e891348/attachment.bin>


More information about the llvm-commits mailing list