mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 01:18:53 +00:00
[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
This commit is contained in:
parent
90b0a1fc58
commit
21d9c70b91
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user