From 68c95bfef1859f51035a7c874bbd09dfe53b56f2 Mon Sep 17 00:00:00 2001 From: "Matthias J. Kannwischer" Date: Wed, 18 Dec 2024 15:24:59 +0800 Subject: [PATCH] Renaming: Rename .size directives --- slothy/helper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slothy/helper.py b/slothy/helper.py index 049ace65..c847ecc9 100644 --- a/slothy/helper.py +++ b/slothy/helper.py @@ -519,6 +519,7 @@ def change_funcname(line): s = re.sub( f"{old_funcname}:", f"{new_funcname}:", s) s = re.sub( f"\\.global(\\s+){old_funcname}", f".global\\1{new_funcname}", s) s = re.sub( f"\\.type(\\s+){old_funcname}", f".type\\1{new_funcname}", s) + s = re.sub( f"\\.size(\\s+){old_funcname},(\\s*)\\.-{old_funcname}", f".size {new_funcname}, .-{new_funcname}", s) return line.copy().set_text(s) return [ change_funcname(s) for s in source ]