[dev.ssa] cmd/compile: repair ssa testing build and test

Calls to NewConfig required an extra parameter that
sometimes could not be nil.

Change-Id: I806dd53c045056a0c2d30d641a20fe27fb790539
Reviewed-on: https://go-review.googlesource.com/16272
Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
David Chase 2015-10-23 12:34:03 -04:00
parent 7d61246972
commit 3abb844108
3 changed files with 14 additions and 12 deletions

View file

@ -5,6 +5,7 @@
package ssa
import (
"cmd/internal/obj"
"fmt"
"testing"
)
@ -15,7 +16,8 @@ var Opt = opt
var Deadcode = deadcode
func testConfig(t *testing.T) *Config {
return NewConfig("amd64", DummyFrontend{t})
testCtxt := &obj.Link{}
return NewConfig("amd64", DummyFrontend{t}, testCtxt)
}
// DummyFrontend is a test-only frontend.