mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-12 12:48:59 +00:00
coach UpdateTestChecks to filter out certain symbol aliases for m68k
This patch coaches UpdateTestChecks to filter out these symbol aliases in llc test for m68k - .L<function name>$local: - .type .L<function name>$local,@function Reviewed By: myhsu Differential Revision: https://reviews.llvm.org/D151526
This commit is contained in:
parent
41f8b6fe74
commit
2f62803ea4
@ -71,10 +71,11 @@ ASM_FUNCTION_HEXAGON_RE = re.compile(
|
||||
|
||||
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,@function\n)?' # drop .type .L<func>$local,@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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user