diff options
author | Alex Bradbury <asb@lowrisc.org> | 2019-07-08 08:34:16 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2019-07-08 08:34:16 +0000 |
commit | 1606a864647c24f0e12da439b15acd13e7b922f6 (patch) | |
tree | b6adea158679442ed7529acee969b7dfcb94afd9 /llvm/utils/UpdateTestChecks/asm.py | |
parent | 34958d12c9cae91f41f5ef5369a21746218b4519 (diff) | |
download | bcm5719-llvm-1606a864647c24f0e12da439b15acd13e7b922f6.tar.gz bcm5719-llvm-1606a864647c24f0e12da439b15acd13e7b922f6.zip |
[UpdateTestChecks] Skip over .Lfunc_begin for RISC-V
This mirrors the change made for X86 in rL336987. Without this patch,
update_llc_test_checks will completely skip functions with personality
functions.
llvm-svn: 365297
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/asm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index 2dc174e0b4d..9c250cd9898 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -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)) |