[dev.unified] cmd/compile: drop package height from Unified IR importer

CL 410342 removed package height, but still needs to keep writing out 0
for iexport for compatibility with existing importers. With Unified IR,
we don't have to, so get rid of the package height completely.

Change-Id: I84a285cbaddd7bb0833d45a24a6818231b4d2b71
Reviewed-on: https://go-review.googlesource.com/c/go/+/411014
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
This commit is contained in:
Cuong Manh Le 2022-06-08 11:05:28 +07:00 committed by Gopher Robot
parent 398d46d538
commit 4b78ece3d7
4 changed files with 1 additions and 7 deletions

View file

@ -292,7 +292,6 @@ func (r *reader) doPkg() *types.Pkg {
}
name := r.String()
_ = r.Len() // was package height, but not necessary anymore.
pkg := types.NewPkg(path, "")