summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2018-07-13 10:29:23 +0000
committerChandler Carruth <chandlerc@gmail.com>2018-07-13 10:29:23 +0000
commit0bc0c53ebab82a7ce660367cf1b219b21927347d (patch)
tree315edaec2c74f4eeaeb6c7e557c0d39ce2232ee9 /utils
parentc3bd8ccb0d727dedcabe04727209c12661994484 (diff)
[UpdateTestChecks] Teach the x86 asm parser to skip over the function
begin label emitted for some routines with personality functions and such. Without this, we don't even recognize such functions as appearing in the output and so don't attach any assertions to them. Happy to tweak this or improve it if folks w/ deeper knowledge of the asm sequences that show up here want. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/UpdateTestChecks/asm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/UpdateTestChecks/asm.py b/utils/UpdateTestChecks/asm.py
index 6bdaaa46ca5..e3f148934aa 100644
--- a/utils/UpdateTestChecks/asm.py
+++ b/utils/UpdateTestChecks/asm.py
@@ -14,7 +14,7 @@ else:
##### Assembly parser
ASM_FUNCTION_X86_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'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|#+ -- End function)',
flags=(re.M | re.S))