ast,build: add build constraints to File

Updates #3
This commit is contained in:
Michael McLoughlin
2019-01-02 21:35:17 -08:00
parent d92a147644
commit 6202c2c9aa
5 changed files with 58 additions and 9 deletions

6
ast.go
View File

@@ -3,6 +3,7 @@ package avo
import (
"errors"
"github.com/mmcloughlin/avo/buildtags"
"github.com/mmcloughlin/avo/gotypes"
"github.com/mmcloughlin/avo/operand"
"github.com/mmcloughlin/avo/reg"
@@ -94,8 +95,9 @@ type Section interface {
// File represents an assembly file.
type File struct {
Includes []string
Sections []Section
Constraints buildtags.Constraints
Includes []string
Sections []Section
}
func NewFile() *File {