Lines Matching refs:asm
12 def find_used_labels(asm): argument
15 for l in asm.splitlines():
22 def normalize_labels(asm): argument
25 for l in asm.splitlines():
30 return asm
33 return asm
35 asm = re.sub("(^|\s+)" + ld + "(?=:|\s)", '\\1.' + ld, asm)
36 return asm
39 def transform_labels(asm): argument
40 asm = normalize_labels(asm)
41 used_decls = find_used_labels(asm)
44 for l in asm.splitlines():
84 def process_asm(asm): argument
89 asm = transform_labels(asm)
103 for l in asm.splitlines():