diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2017-03-22 20:27:54 -0700 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2017-03-25 00:09:21 +0000 |
commit | 34975095d0fbf61e1c22c0adf71ca1568106862f (patch) | |
tree | 699f16106310438b3ded6e2f1d400599bb603c54 /src/cmd/compile/internal/ssa/export_test.go | |
parent | 34396adac1949438e8f059a199d813ac4619f158 (diff) | |
download | go-34975095d0fbf61e1c22c0adf71ca1568106862f.tar.gz go-34975095d0fbf61e1c22c0adf71ca1568106862f.zip |
cmd/compile: provide pos and curfn to temp
Concurrent compilation requires providing an
explicit position and curfn to temp.
This implementation of tempAt temporarily
continues to use the globals lineno and Curfn,
so as not to collide with mdempsky's
work for #19683 eliminating the Curfn dependency
from func nod.
Updates #15756
Updates #19683
Change-Id: Ib3149ca4b0740e9f6eea44babc6f34cdd63028a9
Reviewed-on: https://go-review.googlesource.com/38592
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/export_test.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/export_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/export_test.go b/src/cmd/compile/internal/ssa/export_test.go index fd8d3617f2..c26df1b964 100644 --- a/src/cmd/compile/internal/ssa/export_test.go +++ b/src/cmd/compile/internal/ssa/export_test.go @@ -76,7 +76,7 @@ func (d *DummyAuto) String() string { func (DummyFrontend) StringData(s string) interface{} { return nil } -func (DummyFrontend) Auto(t Type) GCNode { +func (DummyFrontend) Auto(pos src.XPos, t Type) GCNode { return &DummyAuto{t: t, s: "aDummyAuto"} } func (d DummyFrontend) SplitString(s LocalSlot) (LocalSlot, LocalSlot) { |