summaryrefslogtreecommitdiffstats
path: root/llvm/utils/UpdateTestChecks/asm.py
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-04-20 17:16:23 +0000
committerSanjay Patel <spatel@rotateright.com>2018-04-20 17:16:23 +0000
commit21d9c70b91ec7a8dc1e204502f3f3d429938e1d6 (patch)
tree3ac0cb77d663dd6201cc87a1c5e4586395714c29 /llvm/utils/UpdateTestChecks/asm.py
parent90b0a1fc58cc0987d748eb02ecadee743d2efd97 (diff)
downloadbcm5719-llvm-21d9c70b91ec7a8dc1e204502f3f3d429938e1d6.tar.gz
bcm5719-llvm-21d9c70b91ec7a8dc1e204502f3f3d429938e1d6.zip
[utils] improve AArch64 asm parser
If we don't mark the cfi line as optional, the script won't work with 'nounwind' code. Without that attr, there may be extra noise in the asm body that we don't want to see. llvm-svn: 330453
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 5a72eb98031..f3feb3507ce 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -28,7 +28,7 @@ ASM_FUNCTION_ARM_RE = re.compile(
ASM_FUNCTION_AARCH64_RE = re.compile(
r'^_?(?P<func>[^:]+):[ \t]*\/\/[ \t]*@(?P=func)\n'
- r'[ \t]+.cfi_startproc\n'
+ r'(?:[ \t]+.cfi_startproc\n)?' # drop optional cfi noise
r'(?P<body>.*?)\n'
# This list is incomplete
r'.Lfunc_end[0-9]+:\n',
OpenPOWER on IntegriCloud