diff options
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/asm.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index c29d3ac..7a10417 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -142,6 +142,12 @@ ASM_FUNCTION_ARM_MACHO_RE = re.compile( flags=(re.M | re.S)) ASM_FUNCTION_ARM_IOS_RE = re.compile( + r'^_(?P<func>[^:]+):\n' + r'(?P<body>.*?)' + r'^[ \t]*@[ \t]--[ \t]End[ \t]function', + flags=(re.M | re.S)) + +ASM_FUNCTION_THUMB_IOS_RE = re.compile( r'^_(?P<func>[^:]+):[ \t]*\n' r'^Lfunc_begin(?P<id>[0-9][1-9]*):\n' r'(?P<body>.*?)' @@ -376,7 +382,7 @@ def get_run_handler(triple): 'thumb': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_RE), 'thumb-macho': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_MACHO_RE), 'thumbv5-macho': (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_MACHO_RE), - 'thumbv7-apple-ios' : (scrub_asm_arm_eabi, ASM_FUNCTION_ARM_IOS_RE), + 'thumbv7-apple-ios' : (scrub_asm_arm_eabi, ASM_FUNCTION_THUMB_IOS_RE), 'm68k': (scrub_asm_m68k, ASM_FUNCTION_M68K_RE), 'mips': (scrub_asm_mips, ASM_FUNCTION_MIPS_RE), 'msp430': (scrub_asm_msp430, ASM_FUNCTION_MSP430_RE), |