mirror of
https://github.com/golang/go
synced 2024-11-24 21:20:05 -07:00
cmd/compile: switch cannedimports to use a Biobuf
Allows eliminating the separate lexer code paths for reading from cp in the next CL. Change-Id: I49098ecef32b735c4a01374443c2f847235ff964 Reviewed-on: https://go-review.googlesource.com/19750 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
7d3a40978a
commit
699a2ba137
@ -851,7 +851,7 @@ func importfile(f *Val) {
|
||||
func cannedimports(file string, cp string) {
|
||||
lexlineno++ // if sys.6 is included on line 1,
|
||||
pushedio = curio
|
||||
curio = Io{infile: file, cp: cp}
|
||||
curio = Io{infile: file, bin: obj.Binitr(strings.NewReader(cp))}
|
||||
typecheckok = true
|
||||
incannedimport = 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user