]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix lazy loading in reader2
authorMatthew Dempsky <mdempsky@google.com>
Tue, 7 Sep 2021 17:51:14 +0000 (10:51 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 7 Sep 2021 18:36:13 +0000 (18:36 +0000)
commite581ec07eed006e7a54306457ff8d9931b2aae7c
treea61115e881875eb39d9741f5c8b9967400a77fdd
parent81188661f1fd51f67dfff40c451d4e878b533a66
cmd/compile: fix lazy loading in reader2

Calling reader2.obj fully loads the referenced object, which is
necessary in general; but for reading the package index, we just need
to setup the name->index mapping. This CL adds this, so that lazy
loading works as intended.

Change-Id: Ie51d59e2247d99b46f9dc69fba7ce89e2584b7c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/348011
Trust: Matthew Dempsky <mdempsky@google.com>
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/noder/reader2.go