[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:32:09 PDT 2023
0x59616e created this revision.
0x59616e added reviewers: jrtc27, RKSimon, myhsu.
Herald added a subscriber: arichardson.
Herald added a project: All.
0x59616e requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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
@@ -63,6 +63,8 @@
ASM_FUNCTION_M68K_RE = re.compile(
r'^_?(?P<func>[^:]+):[ \t]*;[ \t]*@"?(?P=func)"?\n'
+ 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))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151526.525914.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230526/c7142241/attachment.bin>
More information about the llvm-commits
mailing list