pass: add textflags.h if required

Closes #12
This commit is contained in:
Michael McLoughlin
2018-12-31 00:23:15 -08:00
parent 4aaf6bc7ed
commit c62e40f8d2
13 changed files with 43 additions and 25 deletions

View File

@@ -22,8 +22,6 @@ func TestBasic(t *testing.T) {
AssertPrintsLines(t, ctx, printer.NewGoAsm, []string{
"// Code generated by avo. DO NOT EDIT.",
"",
"#include \"textflag.h\"",
"",
"// func add(x uint64, y uint64) uint64",
"TEXT ·add(SB), $0-24",
"\tMOVQ\tx(FP), AX",
@@ -55,8 +53,6 @@ func TestTextDecl(t *testing.T) {
AssertPrintsLines(t, ctx, printer.NewGoAsm, []string{
"// Code generated by avo. DO NOT EDIT.",
"",
"#include \"textflag.h\"",
"",
"// func noargs()",
"TEXT ·noargs(SB), $16", // expect only the frame size
"\tRET",