OSDN Git Service

[UpdateTestChecks] Skip over .Lfunc_begin for RISC-V
authorAlex Bradbury <asb@lowrisc.org>
Mon, 8 Jul 2019 08:34:16 +0000 (08:34 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Mon, 8 Jul 2019 08:34:16 +0000 (08:34 +0000)
This mirrors the change made for X86 in rL336987. Without this patch,
update_llc_test_checks will completely skip functions with personality
functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365297 91177308-0d34-0410-b5e6-96231b3b80d8

utils/UpdateTestChecks/asm.py

index 2dc174e..9c250cd 100644 (file)
@@ -71,7 +71,7 @@ ASM_FUNCTION_PPC_RE = re.compile(
     flags=(re.M | re.S))
 
 ASM_FUNCTION_RISCV_RE = re.compile(
-    r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n[^:]*?'
+    r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*\.?Lfunc_begin[^:\n]*:\n)?[^:]*?'
     r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
     r'.Lfunc_end[0-9]+:\n',
     flags=(re.M | re.S))