[UpdateTestChecks] Add end_function directive to regex matcher for wasm32 function...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 4 Aug 2019 16:28:37 +0000 (16:28 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 4 Aug 2019 16:28:37 +0000 (16:28 +0000)
llvm-svn: 367786

llvm/utils/UpdateTestChecks/asm.py

index 9c250cd..1eb354d 100644 (file)
@@ -130,7 +130,7 @@ ASM_FUNCTION_ARM_IOS_RE = re.compile(
 ASM_FUNCTION_WASM32_RE = re.compile(
     r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n'
     r'(?P<body>.*?)\n'
-    r'.Lfunc_end[0-9]+:\n',
+    r'^\s*(\.Lfunc_end[0-9]+:\n|end_function)',
     flags=(re.M | re.S))