]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: add debugging mode for import/export
authorKeith Randall <khr@golang.org>
Fri, 5 Mar 2021 17:49:28 +0000 (09:49 -0800)
committerKeith Randall <khr@golang.org>
Tue, 9 Mar 2021 17:51:10 +0000 (17:51 +0000)
commitb60a3a8cfbc6096babe72ebcee0733bba496cf9a
tree8918e38b1c3e9e98a57988bd677f904a7e44700d
parenta70eb2c9f2e3d52116b90a21ce10718356197ee5
cmd/compile: add debugging mode for import/export

Just add a simple magic number with each op, to detect when
the reader gets desynchronized from the writer.

Change-Id: Iac7dab7f465b0021b1d7ae31c8f8a353ac3663a2
Reviewed-on: https://go-review.googlesource.com/c/go/+/299769
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
src/cmd/compile/internal/typecheck/iexport.go
src/cmd/compile/internal/typecheck/iimport.go