aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/asm.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r--llvm/utils/UpdateTestChecks/asm.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index c2829c1..98b4b5d 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -165,12 +165,10 @@ ASM_FUNCTION_AARCH64_DARWIN_RE = re.compile(
)
ASM_FUNCTION_ARM_DARWIN_RE = re.compile(
- r"@[ \t]--[ \t]Begin[ \t]function[ \t](?P<func>[^ \t]+?)\n"
- r"^[ \t]*\.globl[ \t]*_(?P=func)[ \t]*"
+ r"^[ \t]*\.globl[ \t]*_(?P<func>[^ \t]+)[ \t]*\@[ \t]*--[ \t]Begin[ \t]function[ \t](?P=func)\n"
r"(?P<directives>.*?)"
- r"^_(?P=func):\n[ \t]*"
- r"(?P<body>.*?)"
- r"^[ \t]*@[ \t]--[ \t]End[ \t]function",
+ r"^_(?P=func):.*?\n"
+ r"(?P<body>.*?)(?=^[ \t]*@[ \t]--[ \t]End[ \t]function)",
flags=(re.M | re.S),
)