build: doc external symbols (#9)
This commit is contained in:
@@ -42,7 +42,7 @@ func (b *build) instruction(i inst.Instruction) {
|
||||
b.Printf("func (c *Context) %s(%s) {\n", i.Opcode, s.ParameterList())
|
||||
b.Printf("if inst, err := x86.%s(%s); err == nil", i.Opcode, s.Arguments())
|
||||
b.Printf(" { c.Instruction(inst) }")
|
||||
b.Printf(" else { c.AddError(err) }\n")
|
||||
b.Printf(" else { c.adderror(err) }\n")
|
||||
b.Printf("}\n")
|
||||
|
||||
// Global version.
|
||||
|
||||
@@ -39,7 +39,7 @@ func (m *mov) Generate(is []inst.Instruction) ([]byte, error) {
|
||||
}
|
||||
}
|
||||
m.Printf("default:\n")
|
||||
m.Printf("c.AddErrorMessage(\"could not deduce mov instruction\")\n")
|
||||
m.Printf("c.adderrormessage(\"could not deduce mov instruction\")\n")
|
||||
m.Printf("}\n")
|
||||
m.Printf("}\n")
|
||||
return m.Result()
|
||||
|
||||
Reference in New Issue
Block a user