ignoring .loc

This commit is contained in:
Julian Hammer
2019-01-29 13:28:52 +01:00
parent aff5a1104d
commit 5c88f4a55f

View File

@@ -408,8 +408,12 @@ class OSACA(object):
# TODO potential replacement for instr_forms entries in OSACA
# InstructionForm.from_assembly(line)
# Ignore labels
if re.match(r'^[a-zA-Z0-9\_\.]+:$', line):
continue
# Ignore .loc
if re.match(r'^\.loc\s+', line):
continue
self.check_instr(line)
def check_instr(self, instr):
@@ -422,7 +426,6 @@ class OSACA(object):
instr : str
Instruction as string
"""
# Ignore labels
# Check for strange clang padding bytes
while instr.startswith('data32'):
instr = instr[7:]