go/internal/gcimporter: support Go versions < 1.11
Fixes golang/go#34689
Change-Id: I7ab6c5a00c24a188b2dbd75160091cf6c834bd6a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/199037
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
diff --git a/go/internal/gcimporter/iexport.go b/go/internal/gcimporter/iexport.go
index 388e0bc..5f00153 100644
--- a/go/internal/gcimporter/iexport.go
+++ b/go/internal/gcimporter/iexport.go
@@ -6,8 +6,6 @@
// This file was derived from $GOROOT/src/cmd/compile/internal/gc/iexport.go;
// see that file for specification of the format.
-// +build go1.11
-
package gcimporter
import (
@@ -399,7 +397,7 @@
w.pos(f.Pos())
w.string(f.Name())
w.typ(f.Type(), pkg)
- w.bool(f.Embedded())
+ w.bool(f.Anonymous())
w.string(t.Tag(i)) // note (or tag)
}