From 6a51d73b6675adbafd4305702cec7abe990a46e5 Mon Sep 17 00:00:00 2001 From: Zellyn Hunter Date: Thu, 19 Jun 2014 16:46:48 -0700 Subject: [PATCH] Register macro name for Flavors that need it. --- asm/asm.go | 1 + 1 file changed, 1 insertion(+) diff --git a/asm/asm.go b/asm/asm.go index ac07e16..e601a5a 100644 --- a/asm/asm.go +++ b/asm/asm.go @@ -165,6 +165,7 @@ func (a *Assembler) readMacro(in inst.I, ls lines.LineSource) error { in2, err := a.Flavor.ParseInstr(line) if err == nil && in2.Type == inst.TypeMacroEnd { a.Macros[m.Name] = m + a.Flavor.AddMacroName(m.Name) return nil } m.Lines = append(m.Lines, line.Parse.Text())