projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90b0a1f
)
[utils] improve AArch64 asm parser
author
Sanjay Patel
<spatel@rotateright.com>
Fri, 20 Apr 2018 17:16:23 +0000
(17:16 +0000)
committer
Sanjay Patel
<spatel@rotateright.com>
Fri, 20 Apr 2018 17:16:23 +0000
(17:16 +0000)
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
llvm/utils/UpdateTestChecks/asm.py
patch
|
blob
|
history
diff --git
a/llvm/utils/UpdateTestChecks/asm.py
b/llvm/utils/UpdateTestChecks/asm.py
index
5a72eb9
..
f3feb35
100644
(file)
--- 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',