aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/asm.py
diff options
context:
space:
mode:
authorAlex Richardson <alexrichardson@google.com>2022-08-09 09:06:48 +0000
committerAlex Richardson <alexrichardson@google.com>2022-08-09 09:53:47 +0000
commit9a2b14afa02e46acbc7838bafa8d9e59b7cc86b8 (patch)
treeb57b6e888b180bade4145838f16e19a0fbd2ad8f /llvm/utils/UpdateTestChecks/asm.py
parent7925341d9332118c8f3469013b08cdcd9016749c (diff)
downloadllvm-9a2b14afa02e46acbc7838bafa8d9e59b7cc86b8.zip
llvm-9a2b14afa02e46acbc7838bafa8d9e59b7cc86b8.tar.gz
llvm-9a2b14afa02e46acbc7838bafa8d9e59b7cc86b8.tar.bz2
[ARM] Emit local aliases (.Lfoo$local) for functions
ARMAsmPrinter::emitFunctionEntryLabel() was not calling the base class function so the $local alias was not being emitted. This should not have any function effect right now since ARM does not generate different code for the $local symbols, but it could be improved in the future. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D131392
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r--llvm/utils/UpdateTestChecks/asm.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index 821b2d0..7e3bfdc 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -24,6 +24,7 @@ ASM_FUNCTION_X86_RE = re.compile(
ASM_FUNCTION_ARM_RE = re.compile(
r'^(?P<func>[0-9a-zA-Z_$]+):\n' # f: (name of function)
+ r'(?:\.L(?P=func)\$local:\n)?' # drop .L<func>$local:
r'\s+\.fnstart\n' # .fnstart
r'(?P<body>.*?)' # (body of the function)
r'^.Lfunc_end[0-9]+:', # .Lfunc_end0: or # -- End function