From 5c88f4a55f9cf9e68fb2dae0b8b47967c0ffc934 Mon Sep 17 00:00:00 2001 From: Julian Hammer Date: Tue, 29 Jan 2019 13:28:52 +0100 Subject: [PATCH] ignoring .loc --- osaca/osaca.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osaca/osaca.py b/osaca/osaca.py index 664f4fe..c0a9c8a 100755 --- a/osaca/osaca.py +++ b/osaca/osaca.py @@ -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:]