Update reccmp.py (#236)

Support indented comments for 'TEMPLATE'd functions.
This commit is contained in:
Nathan M Gilbert 2023-10-23 07:17:28 -04:00 committed by GitHub
parent 4cc6b9b8ec
commit d232c82e70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -434,7 +434,7 @@ def can_resolve_register_differences(original_asm, new_asm):
line = srcfile.readline() line = srcfile.readline()
line_no += 1 line_no += 1
# Name comes after // comment # Name comes after // comment
name = line[2:].strip() name = line.strip()[2:].strip()
recinfo = syminfo.get_recompiled_address_from_name(name) recinfo = syminfo.get_recompiled_address_from_name(name)
if not recinfo: if not recinfo: