aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/asm.py
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-12-30 12:32:46 -0800
committerFangrui Song <i@maskray.me>2020-12-30 12:32:47 -0800
commit7181df1e4990bdeb55ebe38a0238db1e8c2f2001 (patch)
treeba48ec9f9c0ec1923751d6ba203829e6ecb0c87b /llvm/utils/UpdateTestChecks/asm.py
parent8ca60db40bd944dc5f67e0f200a403b4e03818ea (diff)
downloadllvm-7181df1e4990bdeb55ebe38a0238db1e8c2f2001.zip
llvm-7181df1e4990bdeb55ebe38a0238db1e8c2f2001.tar.gz
llvm-7181df1e4990bdeb55ebe38a0238db1e8c2f2001.tar.bz2
[update_llc_test_checks] Support Windows .seh_proc for x86
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r--llvm/utils/UpdateTestChecks/asm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index 7cfd318..a42a75e 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -17,7 +17,7 @@ else:
ASM_FUNCTION_X86_RE = re.compile(
r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*(@"?(?P=func)"?| -- Begin function (?P=func))\n(?:\s*\.?Lfunc_begin[^:\n]*:\n)?'
r'(?:\.L[^$]+\$local:\n)?' # drop .L<func>$local:
- r'(?:[ \t]+.cfi_startproc\n)?' # drop optional cfi noise
+ r'(?:[ \t]+.cfi_startproc\n|.seh_proc[^\n]+\n)?' # drop optional cfi
r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|#+ -- End function)',
flags=(re.M | re.S))