From 2cdb7f118ab86adb6fef5485d96831df3446b747 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Thu, 16 Mar 2017 22:42:10 -0700 Subject: cmd/compile: move Frontend field from ssa.Config to ssa.Func Suggested by mdempsky in CL 38232. This allows us to use the Frontend field to associate frontend state and information with a function. See the following CL in the series for examples. This is a giant CL, but it is almost entirely routine refactoring. The ssa test API is starting to feel a bit unwieldy. I will clean it up separately, once the dust has settled. Passes toolstash -cmp. Updates #15756 Change-Id: I71c573bd96ff7251935fce1391b06b1f133c3caf Reviewed-on: https://go-review.googlesource.com/38327 Run-TryBot: Josh Bleecher Snyder Reviewed-by: Matthew Dempsky --- src/cmd/compile/internal/ssa/export_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/compile/internal/ssa/export_test.go') diff --git a/src/cmd/compile/internal/ssa/export_test.go b/src/cmd/compile/internal/ssa/export_test.go index 743bdfcd03..eeb1fceb7a 100644 --- a/src/cmd/compile/internal/ssa/export_test.go +++ b/src/cmd/compile/internal/ssa/export_test.go @@ -19,11 +19,11 @@ var Copyelim = copyelim var TestCtxt = obj.Linknew(&x86.Linkamd64) func testConfig(t testing.TB) *Config { - return NewConfig("amd64", DummyFrontend{t}, TestCtxt, true) + return NewConfig("amd64", TestCtxt, true) } func testConfigS390X(t testing.TB) *Config { - return NewConfig("s390x", DummyFrontend{t}, obj.Linknew(&s390x.Links390x), true) + return NewConfig("s390x", obj.Linknew(&s390x.Links390x), true) } // DummyFrontend is a test-only frontend. -- cgit v1.2.3-54-g00ecf